public interface PortableReader
body.brain.iq is a valid nested path.| Modifier and Type | Method and Description |
|---|---|
int |
getFieldClassId(String fieldName) |
Set<String> |
getFieldNames() |
FieldType |
getFieldType(String fieldName) |
ObjectDataInput |
getRawDataInput()
|
int |
getVersion() |
boolean |
hasField(String fieldName) |
boolean |
readBoolean(String fieldName) |
boolean[] |
readBooleanArray(String fieldName) |
byte |
readByte(String fieldName) |
byte[] |
readByteArray(String fieldName) |
char |
readChar(String fieldName) |
char[] |
readCharArray(String fieldName) |
double |
readDouble(String fieldName) |
double[] |
readDoubleArray(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) |
<P extends Portable> |
readPortable(String fieldName) |
Portable[] |
readPortableArray(String fieldName) |
short |
readShort(String fieldName) |
short[] |
readShortArray(String fieldName) |
String |
readUTF(String fieldName) |
String[] |
readUTFArray(String fieldName) |
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 fieldIOExceptionlong readLong(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionString readUTF(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionboolean readBoolean(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionbyte readByte(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionchar readChar(String fieldName) throws IOException
fieldName - name of the fieldIOExceptiondouble readDouble(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionfloat readFloat(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionshort readShort(String fieldName) throws IOException
fieldName - name of the fieldIOException<P extends Portable> P readPortable(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionbyte[] readByteArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionboolean[] readBooleanArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionchar[] readCharArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionint[] readIntArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionlong[] readLongArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptiondouble[] readDoubleArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionfloat[] readFloatArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionshort[] readShortArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionString[] readUTFArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionPortable[] readPortableArray(String fieldName) throws IOException
fieldName - name of the fieldIOExceptionObjectDataInput getRawDataInput() throws IOException
PortableWriter.getRawDataOutput().
Note that portable fields can not read after getRawDataInput() is called. In case this happens,
IOException will be thrown.IOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.