接口 GenericRecordBuilder
-
@Public @Stable public interface GenericRecordBuilder
Generic Record Builder to build aGenericRecord.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 GenericRecordbuild()Build a generic record.GenericRecordBuilderclear(java.lang.String fieldName)Clears the value of the given field.GenericRecordBuilderclear(Field field)Clears the value of the given field.GenericRecordBuilderset(java.lang.String fieldName, java.lang.Object value)Sets the value of a field.GenericRecordBuilderset(Field field, java.lang.Object value)Sets the value of a field.
-
-
-
方法详细资料
-
set
GenericRecordBuilder set(java.lang.String fieldName, java.lang.Object value)
Sets the value of a field.- 参数:
fieldName- the name of the field to set.value- the value to set.- 返回:
- a reference to the RecordBuilder.
-
set
GenericRecordBuilder set(Field field, java.lang.Object value)
Sets the value of a field.- 参数:
field- the field to set.value- the value to set.- 返回:
- a reference to the RecordBuilder.
-
clear
GenericRecordBuilder clear(java.lang.String fieldName)
Clears the value of the given field.- 参数:
fieldName- the name of the field to clear.- 返回:
- a reference to the RecordBuilder.
-
clear
GenericRecordBuilder clear(Field field)
Clears the value of the given field.- 参数:
field- the field to clear.- 返回:
- a reference to the RecordBuilder.
-
build
GenericRecord build()
Build a generic record.- 返回:
- a generic record.
-
-