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 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 © 2017 Hazelcast, Inc.. All Rights Reserved.