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


Java BinaryReader.readObject方法代码示例

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


在下文中一共展示了BinaryReader.readObject方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 {
    val = reader.readObject("arg");
}
 
开发者ID:apache,项目名称:ignite,代码行数:5,代码来源:IgniteServiceConfigVariationsFullApiTest.java

示例3: readBinary

import org.apache.ignite.binary.BinaryReader; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException {
    obj = reader.readObject("obj");
}
 
开发者ID:apache,项目名称:ignite,代码行数:5,代码来源:GridCacheBinaryObjectsAbstractSelfTest.java

示例4: 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.readObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。