當前位置: 首頁>>代碼示例>>Java>>正文


Java BinaryReader類代碼示例

本文整理匯總了Java中org.apache.ignite.binary.BinaryReader的典型用法代碼示例。如果您正苦於以下問題:Java BinaryReader類的具體用法?Java BinaryReader怎麽用?Java BinaryReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BinaryReader類屬於org.apache.ignite.binary包,在下文中一共展示了BinaryReader類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例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 {
    BinaryRawReaderEx rawReader = (BinaryRawReaderEx)reader.rawReader();

    factoryTyp = rawReader.readInt();
    clsName = rawReader.readString();
    payload = rawReader.readObjectDetached();

    int propsSize = rawReader.readInt();

    if (propsSize > 0) {
        props = new HashMap<>(propsSize);

        for (int i = 0; i < propsSize; i++) {
            String key = rawReader.readString();
            Object val = rawReader.readObjectDetached();

            props.put(key, val);
        }
    }
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:22,代碼來源:PlatformJavaObjectFactoryProxy.java

示例7: readBinary

import org.apache.ignite.binary.BinaryReader; //導入依賴的package包/類
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    Object arg = reader.readObject("arg");

    setArguments(arg);

    isVal = reader.readBoolean("isVal");
    bVal = reader.readByte("bVal");
    cVal = reader.readChar("cVal");
    sVal = reader.readShort("sVal");
    intVal = reader.readInt("intVal");
    lVal = reader.readLong("lVal");
    fltVal = reader.readFloat("fltVal");
    dblVal = reader.readDouble("dblVal");
    strVal = reader.readString("strVal");
    arrVal = reader.readObjectArray("arrVal");
    eVal = reader.readEnum("eVal");
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:19,代碼來源:IgniteComputeConfigVariationsFullApiTest.java

示例8: 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

示例9: 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

示例10: readBinary

import org.apache.ignite.binary.BinaryReader; //導入依賴的package包/類
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    id = reader.readInt("id");
    orgId = reader.readInt("orgId");
    firstName = reader.readString("firstName");
    lastName = reader.readString("lastName");
    salary = reader.readDouble("salary");
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:9,代碼來源:CacheOffheapBatchIndexingBaseTest.java

示例11: 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

示例12: readBinary

import org.apache.ignite.binary.BinaryReader; //導入依賴的package包/類
/** {@inheritDoc} */
@Override public void readBinary(final BinaryReader reader) throws BinaryObjectException {
    final BinaryRawReader rawReader = reader.rawReader();

    id = rawReader.readString();
    createTime = rawReader.readLong();
    accessTime = rawReader.readLong();
    maxInactiveInterval = rawReader.readInt();
    attrs = rawReader.readMap();
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:11,代碼來源:WebSessionEntity.java

示例13: readBinary

import org.apache.ignite.binary.BinaryReader; //導入依賴的package包/類
/** {@inheritDoc} */
@Override public void readBinary(final BinaryReader reader) throws BinaryObjectException {
    final BinaryRawReader rawReader = reader.rawReader();

    updatesMap = rawReader.readMap();
    accessTime = rawReader.readLong();
    maxIntervalChanged = rawReader.readBoolean();

    if (maxIntervalChanged)
        maxInactiveInterval = rawReader.readInt();
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:12,代碼來源:WebSessionAttributeProcessor.java

示例14: 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

示例15: 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


注:本文中的org.apache.ignite.binary.BinaryReader類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。