Package com.hazelcast.nio.serialization
Interface PortableReader
Deprecated, for removal: This API element is subject to removal in a future version.
Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization
will be removed as of version 7.0.
Provides means for reading portable fields from binary data in the form of java primitives,
arrays of java primitives, nested portable fields and array of portable fields.
-
Method Summary
Modifier and TypeMethodDescriptionint
getFieldClassId
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getFieldType
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.boolean
readBoolean
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.boolean[]
readBooleanArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.byte
Deprecated, for removal: This API element is subject to removal in a future version.byte[]
readByteArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.char
Deprecated, for removal: This API element is subject to removal in a future version.char[]
readCharArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Reads a date field consisting of year, month of the year and day of the month to LocalDatereadDateArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Date's to LocalDate[]readDecimal
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads a decimal which is arbitrary precision and scale floating-point number to BigDecimalreadDecimalArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Decimal's to BigDecimal[]double
readDouble
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.double[]
readDoubleArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.float
Deprecated, for removal: This API element is subject to removal in a future version.float[]
readFloatArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int[]
readIntArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.long[]
readLongArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.<P extends Portable>
PreadPortable
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Portable[]
readPortableArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.short
Deprecated, for removal: This API element is subject to removal in a future version.short[]
readShortArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.readString
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.String[]
readStringArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Reads a time field consisting of hour, minute, seconds and nanos parts to LocalTimereadTimeArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Time's to LocalTime[]readTimestamp
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads a timestamp field consisting of year, month of the year, day of the month, hour, minute, seconds, nanos parts to LocalDateTimereadTimestampArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Timestamp's to LocalDateTime[]readTimestampWithTimezone
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads a timestamp with timezone field consisting of year, month of the year, day of the month, offset seconds, hour, minute, seconds, nanos parts to OffsetDateTimereadTimestampWithTimezoneArray
(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of TimestampWithTimezone's to OffsetDateTime[]Deprecated.for the sake of better naming.String[]
readUTFArray
(String fieldName) Deprecated.for the sake of better naming.
-
Method Details
-
getVersion
int getVersion()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- global version of portable classes
-
hasField
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field (does not support nested paths)- Returns:
- true if field exist in this class.
-
getFieldNames
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- set of field names on this portable class
-
getFieldType
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- field type of given fieldName
- Throws:
IllegalArgumentException
- if the field does not exist.
-
getFieldClassId
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- classId of given field
-
readInt
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the int value read
- Throws:
IOException
- in case of any exceptional case
-
readLong
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the long value read
- Throws:
IOException
- in case of any exceptional case
-
readUTF
Deprecated.for the sake of better naming. UsereadString(String)
instead- Parameters:
fieldName
- name of the field- Returns:
- the utf string value read
- Throws:
IOException
- in case of any exceptional case
-
readString
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the string value read
- Throws:
IOException
- in case of any exceptional case
-
readBoolean
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the boolean value read
- Throws:
IOException
- in case of any exceptional case
-
readByte
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the byte value read
- Throws:
IOException
- in case of any exceptional case
-
readChar
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the char value read
- Throws:
IOException
- in case of any exceptional case
-
readDouble
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the double value read
- Throws:
IOException
- in case of any exceptional case
-
readFloat
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the float value read
- Throws:
IOException
- in case of any exceptional case
-
readShort
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the short value read
- Throws:
IOException
- in case of any exceptional case
-
readPortable
Deprecated, for removal: This API element is subject to removal in a future version.- Type Parameters:
P
- the type of the portable read- Parameters:
fieldName
- name of the field- Returns:
- the portable value read
- Throws:
IOException
- in case of any exceptional case
-
readDecimal
Deprecated, for removal: This API element is subject to removal in a future version.Reads a decimal which is arbitrary precision and scale floating-point number to BigDecimal- Parameters:
fieldName
- name of the field- Returns:
- the BigDecimal value read
- Throws:
IOException
- in case of any exceptional case
-
readTime
Deprecated, for removal: This API element is subject to removal in a future version.Reads a time field consisting of hour, minute, seconds and nanos parts to LocalTime- Parameters:
fieldName
- name of the field- Returns:
- the LocalTime value read
- Throws:
IOException
- in case of any exceptional case
-
readDate
Deprecated, for removal: This API element is subject to removal in a future version.Reads a date field consisting of year, month of the year and day of the month to LocalDate- Parameters:
fieldName
- name of the field- Returns:
- the LocalDate value read
- Throws:
IOException
- in case of any exceptional case
-
readTimestamp
Deprecated, for removal: This API element is subject to removal in a future version.Reads a timestamp field consisting of year, month of the year, day of the month, hour, minute, seconds, nanos parts to LocalDateTime- Parameters:
fieldName
- name of the field- Returns:
- the LocalDateTime value read
- Throws:
IOException
- in case of any exceptional case
-
readTimestampWithTimezone
Deprecated, for removal: This API element is subject to removal in a future version.Reads a timestamp with timezone field consisting of year, month of the year, day of the month, offset seconds, hour, minute, seconds, nanos parts to OffsetDateTime- Parameters:
fieldName
- name of the field- Returns:
- the OffsetDateTime value read
- Throws:
IOException
- in case of any exceptional case
-
readByteArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the byte array value read
- Throws:
IOException
- in case of any exceptional case
-
readBooleanArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the boolean array value read
- Throws:
IOException
- in case of any exceptional case
-
readCharArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the char array value read
- Throws:
IOException
- in case of any exceptional case
-
readIntArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the int array value read
- Throws:
IOException
- in case of any exceptional case
-
readLongArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the long array value read
- Throws:
IOException
- in case of any exceptional case
-
readDoubleArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the double array value read
- Throws:
IOException
- in case of any exceptional case
-
readFloatArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the float array value read
- Throws:
IOException
- in case of any exceptional case
-
readShortArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the short array value read
- Throws:
IOException
- in case of any exceptional case
-
readUTFArray
Deprecated.for the sake of better naming. UsereadStringArray(String)
instead- Parameters:
fieldName
- name of the field- Returns:
- the String array value read
- Throws:
IOException
- in case of any exceptional case
-
readStringArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the String array value read
- Throws:
IOException
- in case of any exceptional case
-
readPortableArray
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
fieldName
- name of the field- Returns:
- the portable array read
- Throws:
IOException
- in case of any exceptional case
-
readDecimalArray
Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Decimal's to BigDecimal[]- Parameters:
fieldName
- name of the field- Returns:
- the BigDecimal array read
- Throws:
IOException
- in case of any exceptional case- See Also:
-
readTimeArray
Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Time's to LocalTime[]- Parameters:
fieldName
- name of the field- Returns:
- the LocalTime array read
- Throws:
IOException
- in case of any exceptional case- See Also:
-
readDateArray
Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Date's to LocalDate[]- Parameters:
fieldName
- name of the field- Returns:
- the LocalDate array read
- Throws:
IOException
- in case of any exceptional case- See Also:
-
readTimestampArray
Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of Timestamp's to LocalDateTime[]- Parameters:
fieldName
- name of the field- Returns:
- the LocalDateTime array read
- Throws:
IOException
- in case of any exceptional case- See Also:
-
readTimestampWithTimezoneArray
@Nullable OffsetDateTime[] readTimestampWithTimezoneArray(@Nonnull String fieldName) throws IOException Deprecated, for removal: This API element is subject to removal in a future version.Reads an array of TimestampWithTimezone's to OffsetDateTime[]- Parameters:
fieldName
- name of the field- Returns:
- the OffsetDateTime array read
- Throws:
IOException
- in case of any exceptional case- See Also:
-
getRawDataInput
Deprecated, for removal: This API element is subject to removal in a future version.PortableWriter.getRawDataOutput()
.Note that portable fields can not be read after this method is called. If this happens, an IOException will be thrown.
- Returns:
- rawDataInput
- Throws:
IOException
- in case of any exceptional case
-