public interface PortableReader
PortableMarshalAware 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 PortableIdMapper which
allows to override the automatically generated hash code IDs for the type and field names.
| Modifier and Type | Method and Description |
|---|---|
PortableRawReader |
rawReader()
Gets raw reader.
|
boolean |
readBoolean(String fieldName) |
boolean[] |
readBooleanArray(String fieldName) |
byte |
readByte(String fieldName) |
byte[] |
readByteArray(String fieldName) |
char |
readChar(String fieldName) |
char[] |
readCharArray(String fieldName) |
<T> Collection<T> |
readCollection(String fieldName) |
<T> Collection<T> |
readCollection(String fieldName,
Class<? extends Collection<T>> colCls) |
Date |
readDate(String fieldName) |
Date[] |
readDateArray(String fieldName) |
BigDecimal |
readDecimal(String fieldName) |
BigDecimal[] |
readDecimalArray(String fieldName) |
double |
readDouble(String fieldName) |
double[] |
readDoubleArray(String fieldName) |
<T extends Enum<?>> |
readEnum(String fieldName) |
<T extends Enum<?>> |
readEnumArray(String fieldName) |
float |
readFloat(String fieldName) |
float[] |
readFloatArray(String fieldName) |
int |
readInt(String fieldName) |
int[] |
readIntArray(String fieldName) |
long |
readLong(String fieldName) |
long[] |
readLongArray(String fieldName) |
<K,V> Map<K,V> |
readMap(String fieldName) |
<K,V> Map<K,V> |
readMap(String fieldName,
Class<? extends Map<K,V>> mapCls) |
<T> T |
readObject(String fieldName) |
Object[] |
readObjectArray(String fieldName) |
short |
readShort(String fieldName) |
short[] |
readShortArray(String fieldName) |
String |
readString(String fieldName) |
String[] |
readStringArray(String fieldName) |
Timestamp |
readTimestamp(String fieldName) |
UUID |
readUuid(String fieldName) |
UUID[] |
readUuidArray(String fieldName) |
byte readByte(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.short readShort(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.int readInt(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.long readLong(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.float readFloat(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.double readDouble(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.char readChar(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.boolean readBoolean(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable BigDecimal readDecimal(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable String readString(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable UUID readUuid(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable Date readDate(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable Timestamp readTimestamp(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable <T> T readObject(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable byte[] readByteArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable short[] readShortArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable int[] readIntArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable long[] readLongArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable float[] readFloatArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable double[] readDoubleArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable char[] readCharArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable boolean[] readBooleanArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable BigDecimal[] readDecimalArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable String[] readStringArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable UUID[] readUuidArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable Date[] readDateArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable Object[] readObjectArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable <T> Collection<T> readCollection(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable <T> Collection<T> readCollection(String fieldName, Class<? extends Collection<T>> colCls) throws PortableException
fieldName - Field name.colCls - Collection class.PortableException - In case of error.@Nullable <K,V> Map<K,V> readMap(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable <K,V> Map<K,V> readMap(String fieldName, Class<? extends Map<K,V>> mapCls) throws PortableException
fieldName - Field name.mapCls - Map class.PortableException - In case of error.@Nullable <T extends Enum<?>> T readEnum(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.@Nullable <T extends Enum<?>> T[] readEnumArray(String fieldName) throws PortableException
fieldName - Field name.PortableException - In case of error.PortableRawReader rawReader()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015