@Beta public interface GenericRecordBuilder
GenericRecord
instances.Modifier and Type | Method and Description |
---|---|
GenericRecord |
build() |
static GenericRecordBuilder |
compact(String className) |
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.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfChar(String fieldName,
char[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfDate(String fieldName,
LocalDate[] value)
Sets an array of Date's
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfDecimal(String fieldName,
BigDecimal[] value)
Sets an array of Decimals
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfFloat32(String fieldName,
float[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfFloat64(String fieldName,
double[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfGenericRecord(String fieldName,
GenericRecord[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfInt16(String fieldName,
short[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfInt32(String fieldName,
int[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfInt64(String fieldName,
long[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfInt8(String fieldName,
byte[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableBoolean(String fieldName,
Boolean[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableFloat32(String fieldName,
Float[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableFloat64(String fieldName,
Double[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableInt16(String fieldName,
Short[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableInt32(String fieldName,
Integer[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableInt64(String fieldName,
Long[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfNullableInt8(String fieldName,
Byte[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfString(String fieldName,
String[] value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfTime(String fieldName,
LocalTime[] value)
Sets an array of Time's
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfTimestamp(String fieldName,
LocalDateTime[] value)
Sets an array of Timestamp's
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setArrayOfTimestampWithTimezone(String fieldName,
OffsetDateTime[] value)
Sets an array of TimestampWithTimezone's
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setBoolean(String fieldName,
boolean value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setChar(String fieldName,
char value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setDate(String fieldName,
LocalDate value)
Sets a date field consisting of year , month of the year and day of the month
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setDecimal(String fieldName,
BigDecimal value)
Sets a decimal which is arbitrary precision and scale floating-point number
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setFloat32(String fieldName,
float value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setFloat64(String fieldName,
double value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setGenericRecord(String fieldName,
GenericRecord value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setInt16(String fieldName,
short value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setInt32(String fieldName,
int value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setInt64(String fieldName,
long value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setInt8(String fieldName,
byte value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableBoolean(String fieldName,
Boolean value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableFloat32(String fieldName,
Float value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableFloat64(String fieldName,
Double value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableint16(String fieldName,
Short value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableInt32(String fieldName,
Integer value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableInt64(String fieldName,
Long value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setNullableInt8(String fieldName,
Byte value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setString(String fieldName,
String value)
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
GenericRecordBuilder |
setTime(String fieldName,
LocalTime value)
Sets a time field consisting of hour, minute, seconds and nanos parts
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
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
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
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
It is legal to set the field again only when Builder is created with
GenericRecord.cloneWithBuilder() . |
@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") .setInt("id", 123).build();
classDefinition
- of the portable that we will create@Beta @Nonnull static GenericRecordBuilder compact(String className)
CompactSerializationConfig
@Nonnull GenericRecord build()
HazelcastSerializationException
- when the GenericRecord cannot be build.@Nonnull GenericRecordBuilder setBoolean(@Nonnull String fieldName, boolean value)
GenericRecord.cloneWithBuilder()
.
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 alpha-numeric characters.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setInt8(@Nonnull String fieldName, byte value)
GenericRecord.cloneWithBuilder()
.
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 alpha-numeric characters.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setChar(@Nonnull String fieldName, char value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setInt16(@Nonnull String fieldName, short value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setInt32(@Nonnull String fieldName, int value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setInt64(@Nonnull String fieldName, long value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setFloat32(@Nonnull String fieldName, float value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setFloat64(@Nonnull String fieldName, double value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableBoolean(@Nonnull String fieldName, @Nullable Boolean value)
GenericRecord.cloneWithBuilder()
.
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 alpha-numeric characters.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableInt8(@Nonnull String fieldName, @Nullable Byte value)
GenericRecord.cloneWithBuilder()
.
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 alpha-numeric characters.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableint16(@Nonnull String fieldName, @Nullable Short value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableInt32(@Nonnull String fieldName, @Nullable Integer value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableInt64(@Nonnull String fieldName, @Nullable Long value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableFloat32(@Nonnull String fieldName, @Nullable Float value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setNullableFloat64(@Nonnull String fieldName, @Nullable Double value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setString(@Nonnull String fieldName, @Nullable String value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setGenericRecord(@Nonnull String fieldName, @Nullable GenericRecord value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.
This method allows nested structures. Subclass should also created as `GenericRecord`.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setDecimal(@Nonnull String fieldName, @Nullable BigDecimal value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setTime(@Nonnull String fieldName, @Nullable LocalTime value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setDate(@Nonnull String fieldName, @Nullable LocalDate value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setTimestamp(@Nonnull String fieldName, @Nullable LocalDateTime value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setTimestampWithTimezone(@Nonnull String fieldName, @Nullable OffsetDateTime value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfBoolean(@Nonnull String fieldName, @Nullable boolean[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfInt8(@Nonnull String fieldName, @Nullable byte[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfChar(@Nonnull String fieldName, @Nullable char[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfInt16(@Nonnull String fieldName, @Nullable short[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfInt32(@Nonnull String fieldName, @Nullable int[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfInt64(@Nonnull String fieldName, @Nullable long[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfFloat32(@Nonnull String fieldName, @Nullable float[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfFloat64(@Nonnull String fieldName, @Nullable double[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableBoolean(@Nonnull String fieldName, @Nullable Boolean[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt8(@Nonnull String fieldName, @Nullable Byte[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt16(@Nonnull String fieldName, @Nullable Short[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt32(@Nonnull String fieldName, @Nullable Integer[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableInt64(@Nonnull String fieldName, @Nullable Long[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableFloat32(@Nonnull String fieldName, @Nullable Float[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfNullableFloat64(@Nonnull String fieldName, @Nullable Double[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfString(@Nonnull String fieldName, @Nullable String[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.@Nonnull GenericRecordBuilder setArrayOfDecimal(@Nonnull String fieldName, @Nullable BigDecimal[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.setDecimal(String, BigDecimal)
@Nonnull GenericRecordBuilder setArrayOfTime(@Nonnull String fieldName, @Nullable LocalTime[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.setTime(String, LocalTime)
@Nonnull GenericRecordBuilder setArrayOfDate(@Nonnull String fieldName, @Nullable LocalDate[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.setDate(String, LocalDate)
@Nonnull GenericRecordBuilder setArrayOfTimestamp(@Nonnull String fieldName, @Nullable LocalDateTime[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.setTimestamp(String, LocalDateTime)
@Nonnull GenericRecordBuilder setArrayOfTimestampWithTimezone(@Nonnull String fieldName, @Nullable OffsetDateTime[] value)
GenericRecord.cloneWithBuilder()
.
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 class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.setTimestampWithTimezone(String, OffsetDateTime)
@Nonnull GenericRecordBuilder setArrayOfGenericRecord(@Nonnull String fieldName, @Nullable GenericRecord[] value)
GenericRecord.cloneWithBuilder()
.
Otherwise, it is illegal to set to the same field twice.
This method allows nested structures. Subclasses should also created as `GenericRecord`.
Array items can not be null.
fieldName
- name of the field as it is defined in its class definition.
See ClassDefinition
for Portable
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
Same field is trying to be set without using
GenericRecord.cloneWithBuilder()
.Copyright © 2022 Hazelcast, Inc.. All rights reserved.