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


Java BinaryReader.readObjectArray方法代碼示例

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


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

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

示例2: readBinary

import org.apache.ignite.binary.BinaryReader; //導入方法依賴的package包/類
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    b = reader.readByte("_b");
    s = reader.readShort("_s");
    i = reader.readInt("_i");
    l = reader.readLong("_l");
    f = reader.readFloat("_f");
    d = reader.readDouble("_d");
    c = reader.readChar("_c");
    bool = reader.readBoolean("_bool");
    str = reader.readString("_str");
    uuid = reader.readUuid("_uuid");
    date = reader.readDate("_date");
    ts = reader.readTimestamp("_ts");
    time = reader.readTime("_time");
    bArr = reader.readByteArray("_bArr");
    sArr = reader.readShortArray("_sArr");
    iArr = reader.readIntArray("_iArr");
    lArr = reader.readLongArray("_lArr");
    fArr = reader.readFloatArray("_fArr");
    dArr = reader.readDoubleArray("_dArr");
    cArr = reader.readCharArray("_cArr");
    boolArr = reader.readBooleanArray("_boolArr");
    strArr = reader.readStringArray("_strArr");
    uuidArr = reader.readUuidArray("_uuidArr");
    dateArr = reader.readDateArray("_dateArr");
    timeArr = reader.readTimeArray("_timeArr");
    objArr = reader.readObjectArray("_objArr");
    col = reader.readCollection("_col");
    map = reader.readMap("_map");
    enumVal = reader.readEnum("_enumVal");
    enumArr = reader.readEnumArray("_enumArr");
    simple = reader.readObject("_simple");
    binary = reader.readObject("_binary");

    BinaryRawReader raw = reader.rawReader();

    bRaw = raw.readByte();
    sRaw = raw.readShort();
    iRaw = raw.readInt();
    lRaw = raw.readLong();
    fRaw = raw.readFloat();
    dRaw = raw.readDouble();
    cRaw = raw.readChar();
    boolRaw = raw.readBoolean();
    strRaw = raw.readString();
    uuidRaw = raw.readUuid();
    dateRaw = raw.readDate();
    tsRaw = raw.readTimestamp();
    timeRaw = raw.readTime();
    bArrRaw = raw.readByteArray();
    sArrRaw = raw.readShortArray();
    iArrRaw = raw.readIntArray();
    lArrRaw = raw.readLongArray();
    fArrRaw = raw.readFloatArray();
    dArrRaw = raw.readDoubleArray();
    cArrRaw = raw.readCharArray();
    boolArrRaw = raw.readBooleanArray();
    strArrRaw = raw.readStringArray();
    uuidArrRaw = raw.readUuidArray();
    dateArrRaw = raw.readDateArray();
    timeArrRaw = raw.readTimeArray();
    objArrRaw = raw.readObjectArray();
    colRaw = raw.readCollection();
    mapRaw = raw.readMap();
    enumValRaw = raw.readEnum();
    enumArrRaw = raw.readEnumArray();
    simpleRaw = raw.readObject();
    binaryRaw = raw.readObject();
}
 
開發者ID:apache,項目名稱:ignite,代碼行數:71,代碼來源:BinaryMarshallerSelfTest.java


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