Java Code Examples for org.apache.ignite.binary.BinaryReader#rawReader()
The following examples show how to use
org.apache.ignite.binary.BinaryReader#rawReader() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlatformDotNetSessionSetAndUnlockProcessor.java From ignite with Apache License 2.0 | 6 votes |
/** {@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()); } } }
Example 2
Source File: WebSessionEntity.java From ignite with Apache License 2.0 | 5 votes |
/** {@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(); }
Example 3
Source File: PlatformDotNetSessionLockResult.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader raw = reader.rawReader(); success = raw.readBoolean(); if (success) { data = new PlatformDotNetSessionData(); data.readBinary(raw); } lockTime = raw.readTimestamp(); lockId = raw.readLong(); }
Example 4
Source File: IgfsListingEntry.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); id = BinaryUtils.readIgniteUuid(in); dir = in.readBoolean(); }
Example 5
Source File: IgfsMetaUpdateTimesProcessor.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); accessTime = in.readLong(); modificationTime = in.readLong(); }
Example 6
Source File: IgfsMetaDirectoryListingRenameProcessor.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); oldName = in.readString(); newName = in.readString(); }
Example 7
Source File: IgfsMetaDirectoryListingRemoveProcessor.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); fileName = in.readString(); fileId = BinaryUtils.readIgniteUuid(in); }
Example 8
Source File: IgfsMetaFileReserveSpaceProcessor.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); space = in.readLong(); affRange = in.readObject(); }
Example 9
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@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(); }
Example 10
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader rawReader = reader.rawReader(); val0 = rawReader.readInt(); val1 = rawReader.readInt(); }
Example 11
Source File: IgfsMetaFileRangeUpdateProcessor.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); range = in.readObject(); status = in.readInt(); }
Example 12
Source File: IgniteUuid.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); locId = in.readLong(); gid = new UUID(in.readLong(), in.readLong()); }
Example 13
Source File: GridBinaryMarshalerAwareTestClass.java From ignite with Apache License 2.0 | 5 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { s = reader.readString("s"); BinaryRawReader raw = reader.rawReader(); sRaw = raw.readString(); }
Example 14
Source File: IgfsPathSummary.java From ignite with Apache License 2.0 | 5 votes |
/** {@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); }
Example 15
Source File: BinaryMarshallerSelfTest.java From ignite with Apache License 2.0 | 4 votes |
/** {@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(); }
Example 16
Source File: IgfsMetaFileRangeDeleteProcessor.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader in = reader.rawReader(); range = in.readObject(); }
Example 17
Source File: PlatformDotNetSessionData.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader raw = reader.rawReader(); readBinary(raw); }
Example 18
Source File: GridClosureProcessor.java From ignite with Apache License 2.0 | 4 votes |
@Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader rawReader = reader.rawReader(); job = rawReader.readObject(); arg = rawReader.readObject(); }
Example 19
Source File: IgfsNodePredicate.java From ignite with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader rawReader = reader.rawReader(); igfsName = rawReader.readString(); }
Example 20
Source File: IgfsBlockLocationImpl.java From ignite with Apache License 2.0 | 3 votes |
/** {@inheritDoc} */ @Override public void readBinary(BinaryReader reader) throws BinaryObjectException { BinaryRawReader rawReader = reader.rawReader(); start = rawReader.readLong(); len = rawReader.readLong(); int size; if (rawReader.readBoolean()) { size = rawReader.readInt(); nodeIds = new ArrayList<>(size); for (int i = 0; i < size; i++) nodeIds.add(U.readUuid(rawReader)); } size = rawReader.readInt(); names = new ArrayList<>(size); for (int i = 0; i < size; i++) names.add(rawReader.readString()); size = rawReader.readInt(); hosts = new ArrayList<>(size); for (int i = 0; i < size; i++) hosts.add(rawReader.readString()); }