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


Java U.readByteArray方法代码示例

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


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

示例1: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    boolean b = in.readBoolean();

    if (b) {
        prjPredBytes = U.readByteArray(in);
        clsName = U.readString(in);
        depInfo = (GridDeploymentInfo)in.readObject();
    }
    else
        prjPred = (IgnitePredicate<ClusterNode>)in.readObject();

    hnd = (GridContinuousHandler)in.readObject();
    bufSize = in.readInt();
    interval = in.readLong();
    autoUnsubscribe = in.readBoolean();
}
 
开发者ID:apache,项目名称:ignite,代码行数:19,代码来源:StartRequestData.java

示例2: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@SuppressWarnings("unchecked")
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    id = in.readInt();

    clsName = in.readUTF();
    bytes = U.readByteArray(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:HadoopSplitWrapper.java

示例3: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    id = U.readGridUuid(in);
    field1 = in.readLong();
    field2 = in.readLong();
    str = U.readString(in);
    bytes = U.readByteArray(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:GridTestMessage.java

示例4: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    metrics = U.readByteArray(in);

    int clientMetricsSize = in.readInt();

    if (clientMetricsSize >= 0) {
        clientMetrics = new ArrayList<>(clientMetricsSize);

        for (int i = 0; i < clientMetricsSize; i++)
            clientMetrics.add(U.readByteArray(in));
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:14,代码来源:TcpDiscoveryMetricsUpdateMessage.java

示例5: readExternal

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

示例6: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    jobId = new HadoopJobId();

    jobId.readExternal(in);
    msgId = in.readLong();
    reducer = in.readInt();
    off = in.readInt();
    buf = U.readByteArray(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:HadoopShuffleMessage.java

示例7: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    jobId = new HadoopJobId();
    jobId.readExternal(in);

    reducer = in.readInt();
    cnt = in.readInt();

    buf = U.readByteArray(in);
    bufLen = buf != null ? buf.length : 0;

    dataLen = in.readInt();
}
 
开发者ID:apache,项目名称:ignite,代码行数:14,代码来源:HadoopDirectShuffleMessage.java

示例8: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    jobName = U.readString(in);
    user = U.readString(in);

    hasCombiner = in.readBoolean();
    numReduces = in.readInt();

    props = IgfsUtils.readStringMap(in);

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

示例9: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    src = U.readByteArray(in);

    depMode = DeploymentMode.fromOrdinal(in.readInt());

    clsLdrId = U.readGridUuid(in);
    srcClsName = U.readString(in);
    userVer = U.readString(in);
    ldrParties = U.readMap(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:GridAffinityMessage.java

示例10: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    successStatus = in.readInt();
    sesTokBytes = U.readByteArray(in);
    sesTokStr = U.readString(in);
    err = U.readString(in);
    obj = in.readObject();
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:GridRestResponse.java

示例11: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    boolean b = in.readBoolean();

    if (b) {
        filterBytes = U.readByteArray(in);
        clsName = U.readString(in);
        depInfo = (GridDeploymentInfo)in.readObject();
    }
    else
        filter = (IgnitePredicate<Event>)in.readObject();

    types = (int[])in.readObject();
}
 
开发者ID:apache,项目名称:ignite,代码行数:15,代码来源:GridEventConsumeHandler.java

示例12: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    depEnabled = in.readBoolean();

    if (depEnabled) {
        topicBytes = U.readByteArray(in);
        predBytes = U.readByteArray(in);
        clsName = U.readString(in);
        depInfo = (GridDeploymentInfoBean)in.readObject();
    }
    else {
        topic = in.readObject();
        pred = (IgniteBiPredicate<UUID, Object>)in.readObject();
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:16,代码来源:GridMessageListenHandler.java

示例13: VisorDataTransferObjectInput

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/**
 * @param in Target input.
 * @throws IOException If an I/O error occurs.
 */
public VisorDataTransferObjectInput(ObjectInput in) throws IOException {
    byte[] buf = U.readByteArray(in);

    /* */
    GridByteArrayInputStream bis = new GridByteArrayInputStream(buf);
    ois = new ObjectInputStream(bis);
}
 
开发者ID:apache,项目名称:ignite,代码行数:12,代码来源:VisorDataTransferObjectInput.java

示例14: readExternalData

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
    path = U.readString(in);
    off = in.readLong();
    size = in.readLong();
    lastModified = in.readLong();
    zipped = in.readBoolean();
    data = U.readByteArray(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorFileBlock.java

示例15: readExternal

import org.apache.ignite.internal.util.typedef.internal.U; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException {
    start = in.readInt();
    data = U.readByteArray(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:6,代码来源:IgfsDataManager.java


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