Interface Record.Builder
-
- Enclosing interface:
- Record
public static interface Record.Builder
Allows to create a record with a fluent API. This is the unique recommended way to create a record.
-
-
Method Summary
-
-
-
Method Detail
-
getCurrentEntries
List<Schema.Entry> getCurrentEntries()
-
removeEntry
Record.Builder removeEntry(Schema.Entry schemaEntry)
-
updateEntryByName
Record.Builder updateEntryByName(String name, Schema.Entry schemaEntry)
-
with
Record.Builder with(Schema.Entry entry, Object value)
-
withString
Record.Builder withString(String name, String value)
-
withString
Record.Builder withString(Schema.Entry entry, String value)
-
withBytes
Record.Builder withBytes(String name, byte[] value)
-
withBytes
Record.Builder withBytes(Schema.Entry entry, byte[] value)
-
withDateTime
Record.Builder withDateTime(String name, Date value)
-
withDateTime
Record.Builder withDateTime(Schema.Entry entry, Date value)
-
withDateTime
Record.Builder withDateTime(String name, ZonedDateTime value)
-
withDateTime
Record.Builder withDateTime(Schema.Entry entry, ZonedDateTime value)
-
withTimestamp
Record.Builder withTimestamp(String name, long value)
-
withTimestamp
Record.Builder withTimestamp(Schema.Entry entry, long value)
-
withInt
Record.Builder withInt(String name, int value)
-
withInt
Record.Builder withInt(Schema.Entry entry, int value)
-
withLong
Record.Builder withLong(String name, long value)
-
withLong
Record.Builder withLong(Schema.Entry entry, long value)
-
withFloat
Record.Builder withFloat(String name, float value)
-
withFloat
Record.Builder withFloat(Schema.Entry entry, float value)
-
withDouble
Record.Builder withDouble(String name, double value)
-
withDouble
Record.Builder withDouble(Schema.Entry entry, double value)
-
withBoolean
Record.Builder withBoolean(String name, boolean value)
-
withBoolean
Record.Builder withBoolean(Schema.Entry entry, boolean value)
-
withRecord
Record.Builder withRecord(Schema.Entry entry, Record value)
-
withRecord
Record.Builder withRecord(String name, Record value)
- Parameters:
name
- entry name.value
- record value.- Returns:
- this builder.
- Since:
- 1.1.6
-
withArray
<T> Record.Builder withArray(Schema.Entry entry, Collection<T> values)
-
-