public interface BinaryReader
Binarylizable
implementations.
Useful for the cases when user wants a fine-grained control over serialization.
Note that Ignite never writes full strings for field or type names. Instead,
for performance reasons, Ignite writes integer hash codes for type and field names.
It has been tested that hash code conflicts for the type names or the field names
within the same type are virtually non-existent and, to gain performance, it is safe
to work with hash codes. For the cases when hash codes for different types or fields
actually do collide, Ignite provides BinaryIdMapper
which
allows to override the automatically generated hash code IDs for the type and field names.
byte readByte(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.short readShort(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.int readInt(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.long readLong(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.float readFloat(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.double readDouble(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.char readChar(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.boolean readBoolean(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.BigDecimal readDecimal(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.String readString(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.UUID readUuid(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Date readDate(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Timestamp readTimestamp(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Time readTime(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.<T> T readObject(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.byte[] readByteArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.short[] readShortArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.int[] readIntArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.long[] readLongArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.float[] readFloatArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.double[] readDoubleArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.char[] readCharArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.boolean[] readBooleanArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.BigDecimal[] readDecimalArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.String[] readStringArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.UUID[] readUuidArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Date[] readDateArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Timestamp[] readTimestampArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Time[] readTimeArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.Object[] readObjectArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.<T> Collection<T> readCollection(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.<T> Collection<T> readCollection(String fieldName, BinaryCollectionFactory<T> factory) throws BinaryObjectException
fieldName
- Field name.factory
- Collection factory.BinaryObjectException
- In case of error.<K,V> Map<K,V> readMap(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.<K,V> Map<K,V> readMap(String fieldName, BinaryMapFactory<K,V> factory) throws BinaryObjectException
fieldName
- Field name.factory
- Map factory.BinaryObjectException
- In case of error.<T extends Enum<?>> T readEnum(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.<T extends Enum<?>> T[] readEnumArray(String fieldName) throws BinaryObjectException
fieldName
- Field name.BinaryObjectException
- In case of error.BinaryRawReader rawReader()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024