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) |
LocalDate |
readDate(String fieldName)
Reads a date field consisting of year, month of the year and day of the month to LocalDate
|
LocalDate[] |
readDateArray(String fieldName)
Reads an array of Date's to LocalDate[]
|
BigDecimal |
readDecimal(String fieldName)
Reads a decimal which is arbitrary precision and scale floating-point number to BigDecimal
|
BigDecimal[] |
readDecimalArray(String fieldName)
Reads an array of Decimal's to BigDecimal[]
|
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 |
readString(String fieldName) |
String[] |
readStringArray(String fieldName) |
LocalTime |
readTime(String fieldName)
Reads a time field consisting of hour, minute, seconds and nanos parts to LocalTime
|
LocalTime[] |
readTimeArray(String fieldName)
Reads an array of Time's to LocalTime[]
|
LocalDateTime |
readTimestamp(String fieldName)
Reads a timestamp field consisting of
year, month of the year, day of the month, hour, minute, seconds, nanos parts to LocalDateTime
|
LocalDateTime[] |
readTimestampArray(String fieldName)
Reads an array of Timestamp's to LocalDateTime[]
|
OffsetDateTime |
readTimestampWithTimezone(String fieldName)
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
|
OffsetDateTime[] |
readTimestampWithTimezoneArray(String fieldName)
Reads an array of TimestampWithTimezone's to OffsetDateTime[]
|
String |
readUTF(String fieldName)
Deprecated.
for the sake of better naming. Use
readString(String) instead |
String[] |
readUTFArray(String fieldName)
Deprecated.
for the sake of better naming. Use
readStringArray(String) instead |
int getVersion()
boolean hasField(@Nonnull String fieldName)
fieldName
- name of the field (does not support nested paths)@Nonnull Set<String> getFieldNames()
@Nonnull FieldType getFieldType(@Nonnull String fieldName)
fieldName
- name of the fieldIllegalArgumentException
- if the field does not exist.int getFieldClassId(@Nonnull String fieldName)
fieldName
- name of the fieldint readInt(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caselong readLong(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable @Deprecated String readUTF(@Nonnull String fieldName) throws IOException
readString(String)
insteadfieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable String readString(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseboolean readBoolean(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casebyte readByte(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casechar readChar(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casedouble readDouble(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casefloat readFloat(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseshort readShort(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable <P extends Portable> P readPortable(@Nonnull String fieldName) throws IOException
P
- the type of the portable readfieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable BigDecimal readDecimal(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable LocalTime readTime(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable LocalDate readDate(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable LocalDateTime readTimestamp(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable OffsetDateTime readTimestampWithTimezone(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable byte[] readByteArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable boolean[] readBooleanArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable char[] readCharArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable int[] readIntArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable long[] readLongArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable double[] readDoubleArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable float[] readFloatArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional caseshort[] readShortArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable @Deprecated String[] readUTFArray(@Nonnull String fieldName) throws IOException
readStringArray(String)
insteadfieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable String[] readStringArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable Portable[] readPortableArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional case@Nullable BigDecimal[] readDecimalArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casereadDecimal(String)
@Nullable LocalTime[] readTimeArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casereadTime(String)
@Nullable LocalDate[] readDateArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casereadDate(String)
@Nullable LocalDateTime[] readTimestampArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casereadTimestamp(String)
@Nullable OffsetDateTime[] readTimestampWithTimezoneArray(@Nonnull String fieldName) throws IOException
fieldName
- name of the fieldIOException
- in case of any exceptional casereadTimestampWithTimezone(String)
@Nonnull ObjectDataInput getRawDataInput() throws IOException
PortableWriter.getRawDataOutput()
.
Note that portable fields can not be read after this method is called. If this happens, an IOException will be thrown.
IOException
- in case of any exceptional caseCopyright © 2024 Hazelcast, Inc.. All rights reserved.