Modifier and Type | Method and Description |
---|---|
<T> Row.Builder |
addArray(java.util.Collection<T> values) |
Row.Builder |
addArray(java.lang.Object... values) |
<T> Row.Builder |
addIterable(java.lang.Iterable<T> values) |
Row.Builder |
addValue(@Nullable java.lang.Object value) |
Row.Builder |
addValues(java.util.List<java.lang.Object> values) |
Row.Builder |
addValues(java.lang.Object... values) |
Row |
attachValues(java.util.List<java.lang.Object> attachedValues) |
Row |
attachValues(java.lang.Object... values) |
Row |
build() |
Schema |
getSchema()
Return the schema for the row being built.
|
int |
nextFieldId() |
Row.FieldValueBuilder |
withFieldValue(FieldAccessDescriptor fieldAccessDescriptor,
java.lang.Object value)
Set a field value using a FieldAccessDescriptor.
|
Row.FieldValueBuilder |
withFieldValue(java.lang.Integer fieldId,
java.lang.Object value)
Set a field value using the field id.
|
Row.FieldValueBuilder |
withFieldValue(java.lang.String fieldName,
java.lang.Object value)
Set a field value using the field name.
|
<T> Row |
withFieldValueGetters(Factory<java.util.List<FieldValueGetter<T,java.lang.Object>>> fieldValueGetterFactory,
T getterTarget) |
Row.FieldValueBuilder |
withFieldValues(java.util.Map<java.lang.String,java.lang.Object> values)
Sets field values using the field names.
|
public Schema getSchema()
public Row.FieldValueBuilder withFieldValue(java.lang.String fieldName, java.lang.Object value)
public Row.FieldValueBuilder withFieldValue(java.lang.Integer fieldId, java.lang.Object value)
public Row.FieldValueBuilder withFieldValue(FieldAccessDescriptor fieldAccessDescriptor, java.lang.Object value)
public Row.FieldValueBuilder withFieldValues(java.util.Map<java.lang.String,java.lang.Object> values)
public Row.Builder addValue(@Nullable java.lang.Object value)
public Row.Builder addValues(java.util.List<java.lang.Object> values)
public Row.Builder addValues(java.lang.Object... values)
public <T> Row.Builder addArray(java.util.Collection<T> values)
public Row.Builder addArray(java.lang.Object... values)
public <T> Row.Builder addIterable(java.lang.Iterable<T> values)
public Row attachValues(java.lang.Object... values)
public int nextFieldId()
@Internal public <T> Row withFieldValueGetters(Factory<java.util.List<FieldValueGetter<T,java.lang.Object>>> fieldValueGetterFactory, T getterTarget)
public Row build()