public interface RecordV2Builder
RecordV2 value
.
This type of builder may be used to generate free format
RecordV2
format data which is not constrained by a
Schema
.
Such a builder can be created using RecordV2DataType.valueBuilder()
.
Modifier and Type | Method and Description |
---|---|
RecordV2Builder |
addFields(Collection<String> values)
Adds one or more field values.
|
RecordV2Builder |
addFields(String... values)
Adds one or more field values.
|
RecordV2Builder |
addRecord(Collection<String> fields)
Adds a new record comprising the specified field values.
|
RecordV2Builder |
addRecord(String... fields)
Adds a new record comprising the specified field values.
|
RecordV2 |
build()
Builds a
RecordV2 object from the current builder state. |
RecordV2Builder |
clear()
Clears all current values from the builder allowing it to be reused to
generate new data.
|
RecordV2Builder addFields(Collection<String> values)
If there is a current record, this adds the fields to the end of the current record.
values
- field valuesRecordV2Builder addFields(String... values)
If there is a current record, this adds the fields to the end of the current record.
values
- field valuesRecordV2Builder addRecord(Collection<String> fields)
fields
- the fields within the new record. If no fields are
supplied, an empty record will be added.RecordV2Builder addRecord(String... fields)
fields
- the fields within the new record. If no fields are
supplied, an empty record will be added.RecordV2Builder clear()
Copyright © 2022 Push Technology Ltd. All Rights Reserved.