public interface GenericRecordBuilder
GenericRecord
instances.Modifier and Type | Method and Description |
---|---|
GenericRecord |
build() |
static GenericRecordBuilder |
compact(String typeName)
/** Creates a Builder that will build a
GenericRecord in
Compact format
with the given type name and schema: |
static GenericRecordBuilder |
portable(ClassDefinition classDefinition)
Creates a Builder that will build a
GenericRecord in
Portable format with a new class definition: |
GenericRecordBuilder |
setArrayOfBoolean(String fieldName,
boolean[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfChar(String fieldName,
char[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfDate(String fieldName,
LocalDate[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfDecimal(String fieldName,
BigDecimal[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfFloat32(String fieldName,
float[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfFloat64(String fieldName,
double[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfGenericRecord(String fieldName,
GenericRecord[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfInt16(String fieldName,
short[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfInt32(String fieldName,
int[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfInt64(String fieldName,
long[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfInt8(String fieldName,
byte[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableBoolean(String fieldName,
Boolean[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableFloat32(String fieldName,
Float[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableFloat64(String fieldName,
Double[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableInt16(String fieldName,
Short[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableInt32(String fieldName,
Integer[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableInt64(String fieldName,
Long[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfNullableInt8(String fieldName,
Byte[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfString(String fieldName,
String[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfTime(String fieldName,
LocalTime[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfTimestamp(String fieldName,
LocalDateTime[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setArrayOfTimestampWithTimezone(String fieldName,
OffsetDateTime[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setBoolean(String fieldName,
boolean value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setChar(String fieldName,
char value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setDate(String fieldName,
LocalDate value)
Sets a date field consisting of year, month of the year, and day of the
month.
|
GenericRecordBuilder |
setDecimal(String fieldName,
BigDecimal value)
Sets a decimal which is arbitrary precision and scale floating-point
number.
|
GenericRecordBuilder |
setFloat32(String fieldName,
float value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setFloat64(String fieldName,
double value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setGenericRecord(String fieldName,
GenericRecord value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setInt16(String fieldName,
short value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setInt32(String fieldName,
int value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setInt64(String fieldName,
long value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setInt8(String fieldName,
byte value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableBoolean(String fieldName,
Boolean value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableFloat32(String fieldName,
Float value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableFloat64(String fieldName,
Double value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableInt16(String fieldName,
Short value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableInt32(String fieldName,
Integer value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableInt64(String fieldName,
Long value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setNullableInt8(String fieldName,
Byte value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setString(String fieldName,
String value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone() . |
GenericRecordBuilder |
setTime(String fieldName,
LocalTime value)
Sets a time field consisting of hour, minute, seconds, and nanos parts.
|
GenericRecordBuilder |
setTimestamp(String fieldName,
LocalDateTime value)
Sets a timestamp field consisting of year, month of the year, and day of
the month, hour, minute, seconds, nanos parts.
|
GenericRecordBuilder |
setTimestampWithTimezone(String fieldName,
OffsetDateTime value)
Sets a timestamp with timezone field consisting of year, month of the
year and day of the month, offset seconds, hour, minute, seconds, nanos
parts.
|
@Nonnull static GenericRecordBuilder portable(@Nonnull ClassDefinition classDefinition)
GenericRecord
in
Portable
format with a new class definition:
ClassDefinition classDefinition = new ClassDefinitionBuilder(FACTORY_ID, CLASS_ID)
.addStringField("name")
.addIntField("id")
.build();
GenericRecord genericRecord = GenericRecordBuilder.portable(classDefinition)
.setString("name", "foo")
.setInt32("id", 123)
.build();
classDefinition
- of the Portable that will be created@Nonnull static GenericRecordBuilder compact(String typeName)
GenericRecord
in
Compact
format
with the given type name and schema:
GenericRecord genericRecord = GenericRecordBuilder.compact("typeName")
.setString("name", "foo")
.setInt32("id", 123)
.build();
typeName
- of the schema@Nonnull GenericRecord build()
HazelcastSerializationException
- when the GenericRecord cannot be
built.@Nonnull GenericRecordBuilder setBoolean(@Nonnull String fieldName, boolean value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setInt8(@Nonnull String fieldName, byte value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setChar(@Nonnull String fieldName, char value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its class
definition. It should be composed of only alphanumeric
characters.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the class definition or the
type of the field does not match
the one in the class definition
or the same field is trying to be
set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setInt16(@Nonnull String fieldName, short value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setInt32(@Nonnull String fieldName, int value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setInt64(@Nonnull String fieldName, long value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setFloat32(@Nonnull String fieldName, float value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setFloat64(@Nonnull String fieldName, double value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableBoolean(@Nonnull String fieldName, @Nullable Boolean value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableInt8(@Nonnull String fieldName, @Nullable Byte value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableInt16(@Nonnull String fieldName, @Nullable Short value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableInt32(@Nonnull String fieldName, @Nullable Integer value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableInt64(@Nonnull String fieldName, @Nullable Long value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableFloat32(@Nonnull String fieldName, @Nullable Float value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setNullableFloat64(@Nonnull String fieldName, @Nullable Double value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setString(@Nonnull String fieldName, @Nullable String value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setGenericRecord(@Nonnull String fieldName, @Nullable GenericRecord value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. This method allows nested structures.
Subclass should also be created as `GenericRecord`.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setDecimal(@Nonnull String fieldName, @Nullable BigDecimal value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setTime(@Nonnull String fieldName, @Nullable LocalTime value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setDate(@Nonnull String fieldName, @Nullable LocalDate value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setTimestamp(@Nonnull String fieldName, @Nullable LocalDateTime value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setTimestampWithTimezone(@Nonnull String fieldName, @Nullable OffsetDateTime value)
It is legal to set the field again only when Builder is created with
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfBoolean(@Nonnull String fieldName, @Nullable boolean[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfInt8(@Nonnull String fieldName, @Nullable byte[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfChar(@Nonnull String fieldName, @Nullable char[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its class
definition. It should be composed of only alphanumeric
charactersvalue
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the class definition or the
type of the field does not match
the one in the class definition
or the same field is trying to be
set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfInt16(@Nonnull String fieldName, @Nullable short[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfInt32(@Nonnull String fieldName, @Nullable int[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfInt64(@Nonnull String fieldName, @Nullable long[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfFloat32(@Nonnull String fieldName, @Nullable float[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfFloat64(@Nonnull String fieldName, @Nullable double[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableBoolean(@Nonnull String fieldName, @Nullable Boolean[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt8(@Nonnull String fieldName, @Nullable Byte[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt16(@Nonnull String fieldName, @Nullable Short[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt32(@Nonnull String fieldName, @Nullable Integer[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt64(@Nonnull String fieldName, @Nullable Long[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableFloat32(@Nonnull String fieldName, @Nullable Float[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfNullableFloat64(@Nonnull String fieldName, @Nullable Double[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice.
fieldName
- name of the field as it is defined in its schema.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema or the type of the
field does not match the one in
the schema or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfString(@Nonnull String fieldName, @Nullable String[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.@Nonnull GenericRecordBuilder setArrayOfDecimal(@Nonnull String fieldName, @Nullable BigDecimal[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.setDecimal(String, BigDecimal)
@Nonnull GenericRecordBuilder setArrayOfTime(@Nonnull String fieldName, @Nullable LocalTime[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.setTime(String, LocalTime)
@Nonnull GenericRecordBuilder setArrayOfDate(@Nonnull String fieldName, @Nullable LocalDate[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.setDate(String, LocalDate)
@Nonnull GenericRecordBuilder setArrayOfTimestamp(@Nonnull String fieldName, @Nullable LocalDateTime[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.setTimestamp(String, LocalDateTime)
@Nonnull GenericRecordBuilder setArrayOfTimestampWithTimezone(@Nonnull String fieldName, @Nullable OffsetDateTime[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. Array items can not be null.fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.setTimestampWithTimezone(String, OffsetDateTime)
@Nonnull GenericRecordBuilder setArrayOfGenericRecord(@Nonnull String fieldName, @Nullable GenericRecord[] value)
GenericRecord.newBuilderWithClone()
. Otherwise, it is illegal to
set to the same field twice. This method allows nested structures.
Subclasses should also be created as `GenericRecord`.
Array items can not be null.
For Compact
objects, it is not allowed write an array containing different item
types or a HazelcastSerializationException
will be thrown.
fieldName
- name of the field as it is defined in its schema/class
definition. It should be composed of only alphanumeric
characters for Portable
GenericRecords.value
- to set to GenericRecordHazelcastSerializationException
- if the field name does not exist
in the schema/class definition or
the type of the field does not
match the one in the schema/class
definition or the same field is
trying to be set without using
GenericRecord.newBuilderWithClone()
.Copyright © 2024 Hazelcast, Inc.. All rights reserved.