public interface PortableReader
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 fieldFieldType 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 © 2016 Hazelcast, Inc.. All Rights Reserved.