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
T
- Type of the read object.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
T
- Type of elements in collection to read.fieldName
- Field name.BinaryObjectException
- In case of error.<T> Collection<T> readCollection(String fieldName, BinaryCollectionFactory<T> factory) throws BinaryObjectException
T
- Type of elements in collection to read.fieldName
- Field name.factory
- Collection factory.BinaryObjectException
- In case of error.<K,V> Map<K,V> readMap(String fieldName) throws BinaryObjectException
K
- Type of keys in the map to read.V
- Type of mapped values in the map to read.fieldName
- Field name.BinaryObjectException
- In case of error.<K,V> Map<K,V> readMap(String fieldName, BinaryMapFactory<K,V> factory) throws BinaryObjectException
K
- Type of keys in the map to read.V
- Type of mapped values in the map to read.fieldName
- Field name.factory
- Map factory.BinaryObjectException
- In case of error.<T extends Enum<?>> T readEnum(String fieldName) throws BinaryObjectException
T
- Type of the enum to read.fieldName
- Field name.BinaryObjectException
- In case of error.<T extends Enum<?>> T[] readEnumArray(String fieldName) throws BinaryObjectException
T
- Type of the enum values in array to read.fieldName
- Field name.BinaryObjectException
- In case of error.BinaryRawReader rawReader()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023