public interface PortableReader
body.brain.iq
is a valid nested path.int getVersion()
boolean hasField(String fieldName)
fieldName
- name of the field (does not support nested paths)FieldType getFieldType(String fieldName)
fieldName
- name of the fieldint getFieldClassId(String fieldName)
fieldName
- name of the fieldint readInt(String fieldName) throws IOException
fieldName
- name of the fieldIOException
long readLong(String fieldName) throws IOException
fieldName
- name of the fieldIOException
String readUTF(String fieldName) throws IOException
fieldName
- name of the fieldIOException
boolean readBoolean(String fieldName) throws IOException
fieldName
- name of the fieldIOException
byte readByte(String fieldName) throws IOException
fieldName
- name of the fieldIOException
char readChar(String fieldName) throws IOException
fieldName
- name of the fieldIOException
double readDouble(String fieldName) throws IOException
fieldName
- name of the fieldIOException
float readFloat(String fieldName) throws IOException
fieldName
- name of the fieldIOException
short readShort(String fieldName) throws IOException
fieldName
- name of the fieldIOException
<P extends Portable> P readPortable(String fieldName) throws IOException
fieldName
- name of the fieldIOException
byte[] readByteArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
boolean[] readBooleanArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
char[] readCharArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
int[] readIntArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
long[] readLongArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
double[] readDoubleArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
float[] readFloatArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
short[] readShortArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
String[] readUTFArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
Portable[] readPortableArray(String fieldName) throws IOException
fieldName
- name of the fieldIOException
ObjectDataInput getRawDataInput() throws IOException
PortableWriter.getRawDataOutput()
.
Note that portable fields can not read after getRawDataInput() is called. In case this happens,
IOException will be thrown.IOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.