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


Java BinaryReader.rawReader方法代码示例

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


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

示例1: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    readBinary(in);

    if (in.readBoolean()) {
        int listingSize = in.readInt();

        listing = new HashMap<>(listingSize);

        for (int i = 0; i < listingSize; i++) {
            String key = in.readString();

            IgfsListingEntry val = IgfsUtils.readListingEntry(in);

            listing.put(key, val);
        }
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:21,代码来源:IgfsDirectoryInfo.java

示例2: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader raw = reader.rawReader();

    lockNodeId = raw.readUuid();
    lockId = raw.readLong();
    update = raw.readBoolean();

    if (update) {
        isDiff = raw.readBoolean();
        staticData = raw.readByteArray();
        timeout = raw.readInt();

        int cnt = raw.readInt();

        if (cnt >= 0) {
            items = new TreeMap<>();

            for (int i = 0; i < cnt; i++)
                items.put(raw.readString(), raw.readByteArray());
        }
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:24,代码来源:PlatformDotNetSessionSetAndUnlockProcessor.java

示例3: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader raw = reader.rawReader();

    query = raw.readString();

    int cnt = raw.readInt();

    if (cnt >= 0) {
        versions = new long[cnt];

        for (int i = 0; i < cnt; i++)
            versions[i] = raw.readLong();
    }
    else
        versions = null;
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:PlatformDotNetEntityFrameworkCacheKey.java

示例4: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    accessTime = in.readLong();
    modificationTime = in.readLong();

    props = IgfsUtils.readProperties(in);

    blockSize = in.readInt();
    affKey = BinaryUtils.readIgniteUuid(in);
    lockId = BinaryUtils.readIgniteUuid(in);
    evictExclude = in.readBoolean();

    len = in.readLong();
}
 
开发者ID:apache,项目名称:ignite,代码行数:17,代码来源:IgfsMetaFileCreateProcessor.java

示例5: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader raw = reader.rawReader();

    int cnt = raw.readInt();

    if (cnt >= 0) {
        entitySets = new String[cnt];

        for (int i = 0; i < cnt; i++)
            entitySets[i] = raw.readString();
    }
    else
        entitySets = null;

    data = raw.readByteArray();
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:PlatformDotNetEntityFrameworkCacheEntry.java

示例6: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    matrixUuid = in.readUuid();
    affinityKey = in.readUuid();
    blockIdRow = in.readLong();
    blockIdCol = in.readLong();
}
 
开发者ID:Luodian,项目名称:Higher-Cloud-Computing-Project,代码行数:10,代码来源:MatrixBlockKey.java

示例7: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    vectorUuid = in.readUuid();
    affinityKey = in.readUuid();
    blockId = in.readLong();
}
 
开发者ID:Luodian,项目名称:Higher-Cloud-Computing-Project,代码行数:9,代码来源:VectorBlockKey.java

示例8: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    val = reader.readDecimal("val");
    valArr = reader.readDecimalArray("valArr");

    BinaryRawReader rawReader = reader.rawReader();

    rawVal = rawReader.readDecimal();
    rawValArr = rawReader.readDecimalArray();
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:BinaryMarshallerSelfTest.java

示例9: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader rawReader = reader.rawReader();

    filesCnt = rawReader.readInt();
    dirCnt = rawReader.readInt();
    totalLen = rawReader.readLong();

    path = IgfsUtils.readPath(rawReader);
}
 
开发者ID:apache,项目名称:ignite,代码行数:11,代码来源:IgfsPathSummary.java

示例10: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    fileName = in.readString();

    entry = IgfsUtils.readListingEntry(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:9,代码来源:IgfsMetaDirectoryListingAddProcessor.java

示例11: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    range = in.readObject();
    status = in.readInt();
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:IgfsMetaFileRangeUpdateProcessor.java

示例12: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    accessTime = in.readLong();
    modificationTime = in.readLong();

    props = IgfsUtils.readProperties(in);

    childName = in.readString();

    if (childName != null)
        childEntry = IgfsUtils.readListingEntry(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:15,代码来源:IgfsMetaDirectoryCreateProcessor.java

示例13: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    int size = in.readInt();

    if (size > 0) {
        ranges = new ArrayList<>(size);

        for (int i = 0; i < size; i++)
            ranges.add((IgfsFileAffinityRange)in.readObject());
    }
}
 
开发者ID:apache,项目名称:ignite,代码行数:14,代码来源:IgfsFileMap.java

示例14: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    readBinary(in);

    blockSize = in.readInt();
    len = in.readLong();
    lockId = BinaryUtils.readIgniteUuid(in);
    affKey = BinaryUtils.readIgniteUuid(in);
    fileMap = in.readObject();
    evictExclude = in.readBoolean();
}
 
开发者ID:apache,项目名称:ignite,代码行数:14,代码来源:IgfsFileInfo.java

示例15: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    BinaryRawReader in = reader.rawReader();

    oldName = in.readString();
    newName = in.readString();
}
 
开发者ID:apache,项目名称:ignite,代码行数:8,代码来源:IgfsMetaDirectoryListingRenameProcessor.java


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