Interface CompactWriter
public interface CompactWriter
Provides means of writing compact serialized fields to the binary data.
- Since:
- 5.2
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeArrayOfBoolean
(String fieldName, boolean[] value) Writes an array of booleans.<T> void
writeArrayOfCompact
(String fieldName, T[] value) Writes an array of nested compact objects.void
writeArrayOfDate
(String fieldName, LocalDate[] value) Writes an array of dates consisting of year, month, and day.void
writeArrayOfDecimal
(String fieldName, BigDecimal[] value) Writes an array of arbitrary precision and scale floating point numbers.void
writeArrayOfFloat32
(String fieldName, float[] value) Writes an array of 32-bit IEEE 754 floating point numbers.void
writeArrayOfFloat64
(String fieldName, double[] value) Writes an array of 64-bit IEEE 754 floating point numbers.void
writeArrayOfInt16
(String fieldName, short[] value) Writes an array of 16-bit two's complement signed integers.void
writeArrayOfInt32
(String fieldName, int[] value) Writes an array of 32-bit two's complement signed integers.void
writeArrayOfInt64
(String fieldName, long[] value) Writes an array of 64-bit two's complement signed integers.void
writeArrayOfInt8
(String fieldName, byte[] value) Writes an array of 8-bit two's complement signed integers.void
writeArrayOfNullableBoolean
(String fieldName, Boolean[] value) Writes a nullable array of nullable booleans.void
writeArrayOfNullableFloat32
(String fieldName, Float[] value) Writes a nullable array of nullable 32-bit IEEE 754 floating point numbers.void
writeArrayOfNullableFloat64
(String fieldName, Double[] value) Writes a nullable array of nullable 64-bit IEEE 754 floating point numbers.void
writeArrayOfNullableInt16
(String fieldName, Short[] value) Writes a nullable array of nullable 16-bit two's complement signed integers.void
writeArrayOfNullableInt32
(String fieldName, Integer[] value) Writes a nullable array of nullable 32-bit two's complement signed integers.void
writeArrayOfNullableInt64
(String fieldName, Long[] value) Writes a nullable array of nullable 64-bit two's complement signed integers.void
writeArrayOfNullableInt8
(String fieldName, Byte[] value) Writes a nullable array of nullable 8-bit two's complement signed integers.void
writeArrayOfString
(String fieldName, String[] value) Writes an array of UTF-8 encoded strings.void
writeArrayOfTime
(String fieldName, LocalTime[] value) Writes an array of times consisting of hour, minute, second, and nanoseconds.void
writeArrayOfTimestamp
(String fieldName, LocalDateTime[] value) Writes an array of timestamps consisting of date and time.void
writeArrayOfTimestampWithTimezone
(String fieldName, OffsetDateTime[] value) Writes an array of timestamps with timezone consisting of date, time and timezone offset.void
writeBoolean
(String fieldName, boolean value) Writes a boolean.<T> void
writeCompact
(String fieldName, T value) Writes a nested compact object.void
Writes a date consisting of year, month, and day.void
writeDecimal
(String fieldName, BigDecimal value) Writes an arbitrary precision and scale floating point number.void
writeFloat32
(String fieldName, float value) Writes a 32-bit IEEE 754 floating point number.void
writeFloat64
(String fieldName, double value) Writes a 64-bit IEEE 754 floating point number.void
writeInt16
(String fieldName, short value) Writes a 16-bit two's complement signed integer.void
writeInt32
(String fieldName, int value) Writes a 32-bit two's complement signed integer.void
writeInt64
(String fieldName, long value) Writes a 64-bit two's complement signed integer.void
Writes an 8-bit two's complement signed integer.void
writeNullableBoolean
(String fieldName, Boolean value) Writes a nullable boolean.void
writeNullableFloat32
(String fieldName, Float value) Writes a nullable 32-bit IEEE 754 floating point number.void
writeNullableFloat64
(String fieldName, Double value) Writes a nullable 64-bit IEEE 754 floating point number.void
writeNullableInt16
(String fieldName, Short value) Writes a nullable 16-bit two's complement signed integer.void
writeNullableInt32
(String fieldName, Integer value) Writes a nullable 32-bit two's complement signed integer.void
writeNullableInt64
(String fieldName, Long value) Writes a nullable 64-bit two's complement signed integer.void
writeNullableInt8
(String fieldName, Byte value) Writes a nullable 8-bit two's complement signed integer.void
writeString
(String fieldName, String value) Writes a UTF-8 encoded string.void
Writes a time consisting of hour, minute, second, and nanoseconds.void
writeTimestamp
(String fieldName, LocalDateTime value) Writes a timestamp consisting of date and time.void
writeTimestampWithTimezone
(String fieldName, OffsetDateTime value) Writes a timestamp with timezone consisting of date, time and timezone offset.
-
Method Details
-
writeBoolean
Writes a boolean.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeInt8
Writes an 8-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeInt16
Writes a 16-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeInt32
Writes a 32-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeInt64
Writes a 64-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeFloat32
Writes a 32-bit IEEE 754 floating point number.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeFloat64
Writes a 64-bit IEEE 754 floating point number.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeString
Writes a UTF-8 encoded string.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeDecimal
Writes an arbitrary precision and scale floating point number.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeTime
Writes a time consisting of hour, minute, second, and nanoseconds.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeDate
Writes a date consisting of year, month, and day.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeTimestamp
Writes a timestamp consisting of date and time.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeTimestampWithTimezone
Writes a timestamp with timezone consisting of date, time and timezone offset.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeCompact
Writes a nested compact object.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfBoolean
Writes an array of booleans.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfInt8
Writes an array of 8-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfInt16
Writes an array of 16-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfInt32
Writes an array of 32-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfInt64
Writes an array of 64-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfFloat32
Writes an array of 32-bit IEEE 754 floating point numbers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfFloat64
Writes an array of 64-bit IEEE 754 floating point numbers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfString
Writes an array of UTF-8 encoded strings.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfDecimal
Writes an array of arbitrary precision and scale floating point numbers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfTime
Writes an array of times consisting of hour, minute, second, and nanoseconds.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfDate
Writes an array of dates consisting of year, month, and day.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfTimestamp
Writes an array of timestamps consisting of date and time.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfTimestampWithTimezone
Writes an array of timestamps with timezone consisting of date, time and timezone offset.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfCompact
Writes an array of nested compact objects.It is not allowed to write an array containing different item types or a
HazelcastSerializationException
will be thrown.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableBoolean
Writes a nullable boolean.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableInt8
Writes a nullable 8-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableInt16
Writes a nullable 16-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableInt32
Writes a nullable 32-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableInt64
Writes a nullable 64-bit two's complement signed integer.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableFloat32
Writes a nullable 32-bit IEEE 754 floating point number.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeNullableFloat64
Writes a nullable 64-bit IEEE 754 floating point number.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableBoolean
Writes a nullable array of nullable booleans.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableInt8
Writes a nullable array of nullable 8-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableInt16
Writes a nullable array of nullable 16-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableInt32
Writes a nullable array of nullable 32-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableInt64
Writes a nullable array of nullable 64-bit two's complement signed integers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableFloat32
Writes a nullable array of nullable 32-bit IEEE 754 floating point numbers.- Parameters:
fieldName
- name of the field.value
- to be written.
-
writeArrayOfNullableFloat64
Writes a nullable array of nullable 64-bit IEEE 754 floating point numbers.- Parameters:
fieldName
- name of the field.value
- to be written.
-