当前位置: 首页>>代码示例>>Java>>正文


Java U.writeByteArray方法代码示例

本文整理汇总了Java中org.apache.ignite.internal.util.typedef.internal.U.writeByteArray方法的典型用法代码示例。如果您正苦于以下问题:Java U.writeByteArray方法的具体用法?Java U.writeByteArray怎么用?Java U.writeByteArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ignite.internal.util.typedef.internal.U的用法示例。


在下文中一共展示了U.writeByteArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    boolean b = prjPredBytes != null;

    out.writeBoolean(b);

    if (b) {
        U.writeByteArray(out, prjPredBytes);
        U.writeString(out, clsName);
        out.writeObject(depInfo);
    }
    else
        out.writeObject(prjPred);

    out.writeObject(hnd);
    out.writeInt(bufSize);
    out.writeLong(interval);
    out.writeBoolean(autoUnsubscribe);
}
 
开发者ID:apache,项目名称:ignite,代码行数:20,代码来源:StartRequestData.java

示例2: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    boolean b = filterBytes != null;

    out.writeBoolean(b);

    if (b) {
        U.writeByteArray(out, filterBytes);
        U.writeString(out, clsName);
        out.writeObject(depInfo);
    }
    else
        out.writeObject(filter);

    out.writeObject(types);
}
 
开发者ID:apache,项目名称:ignite,代码行数:17,代码来源:GridEventConsumeHandler.java

示例3: close

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void close() throws IOException {
    oos.flush();

    U.writeByteArray(out, bos.internalArray(), bos.size());

    oos.close();
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:VisorDataTransferObjectOutput.java

示例4: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    if (delims != null) {
        out.writeBoolean(true);

        out.writeInt(delims.length);

        for (byte[] delim : delims)
            U.writeByteArray(out, delim);
    }
    else
        out.writeBoolean(false);
}
 
开发者ID:apache,项目名称:ignite,代码行数:14,代码来源:IgfsByteDelimiterRecordResolver.java

示例5: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeByteArray(out, metrics);

    out.writeInt(clientMetrics != null ? clientMetrics.size() : -1);

    if (clientMetrics != null) {
        for (byte[] arr : clientMetrics)
            U.writeByteArray(out, arr);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:TcpDiscoveryMetricsUpdateMessage.java

示例6: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeGridUuid(out, id);
    out.writeLong(field1);
    out.writeLong(field2);
    U.writeString(out, str);
    U.writeByteArray(out, bytes);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:GridTestMessage.java

示例7: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    out.writeByte(major);
    out.writeByte(minor);
    out.writeByte(maintenance);
    out.writeLong(revTs);
    U.writeByteArray(out, revHash);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:IgniteProductVersion.java

示例8: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    jobId.writeExternal(out);
    out.writeLong(msgId);
    out.writeInt(reducer);
    out.writeInt(off);
    U.writeByteArray(out, buf);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:HadoopShuffleMessage.java

示例9: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    jobId.writeExternal(out);

    out.writeInt(reducer);
    out.writeInt(cnt);

    U.writeByteArray(out, buf);

    out.writeInt(dataLen);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:HadoopDirectShuffleMessage.java

示例10: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeString(out, jobName);
    U.writeString(out, user);

    out.writeBoolean(hasCombiner);
    out.writeInt(numReduces);

    IgfsUtils.writeStringMap(out, props);

    U.writeByteArray(out, credentials);
}
 
开发者ID:apache,项目名称:ignite,代码行数:13,代码来源:HadoopDefaultJobInfo.java

示例11: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    U.writeByteArray(out, src);

    out.writeInt(depMode.ordinal());

    U.writeGridUuid(out, clsLdrId);
    U.writeString(out, srcClsName);
    U.writeString(out, userVer);
    U.writeMap(out, ldrParties);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:GridAffinityMessage.java

示例12: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    out.writeInt(successStatus);
    U.writeByteArray(out, sesTokBytes);
    U.writeString(out, sesTokStr);
    U.writeString(out, err);
    out.writeObject(obj);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:GridRestResponse.java

示例13: writeExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void writeExternal(ObjectOutput out) throws IOException {
    out.writeBoolean(depEnabled);

    if (depEnabled) {
        U.writeByteArray(out, topicBytes);
        U.writeByteArray(out, predBytes);
        U.writeString(out, clsName);
        out.writeObject(depInfo);
    }
    else {
        out.writeObject(topic);
        out.writeObject(pred);
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:16,代码来源:GridMessageListenHandler.java

示例14: writeExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void writeExternalData(ObjectOutput out) throws IOException {
    U.writeString(out, path);
    out.writeLong(off);
    out.writeLong(size);
    out.writeLong(lastModified);
    out.writeBoolean(zipped);
    U.writeByteArray(out, data);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorFileBlock.java

示例15: writeObject

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * Serialize this message.
 */
private void writeObject(ObjectOutputStream out) throws IOException {
    out.defaultWriteObject();

    U.writeByteArray(out, addr.getAddress());
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:TcpDiscoveryAuthFailedMessage.java


注:本文中的org.apache.ignite.internal.util.typedef.internal.U.writeByteArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。