接口 GenericRecordBuilder
Generic Record Builder to build a
GenericRecord.-
方法概要
修饰符和类型方法说明build()Build a generic record.Clears the value of the given field.Clears the value of the given field.Sets the value of a field.Sets the value of a field.
-
方法详细资料
-
set
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
Sets the value of a field.- 参数:
field- the field to set.value- the value to set.- 返回:
- a reference to the RecordBuilder.
-
clear
Clears the value of the given field.- 参数:
fieldName- the name of the field to clear.- 返回:
- a reference to the RecordBuilder.
-
clear
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.
-