Interface GenericRecordBuilder
Generic Record Builder to build a
GenericRecord
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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.
-
Method Details
-
set
Sets the value of a field.- Parameters:
fieldName
- the name of the field to set.value
- the value to set.- Returns:
- a reference to the RecordBuilder.
-
set
Sets the value of a field.- Parameters:
field
- the field to set.value
- the value to set.- Returns:
- a reference to the RecordBuilder.
-
clear
Clears the value of the given field.- Parameters:
fieldName
- the name of the field to clear.- Returns:
- a reference to the RecordBuilder.
-
clear
Clears the value of the given field.- Parameters:
field
- the field to clear.- Returns:
- a reference to the RecordBuilder.
-
build
GenericRecord build()Build a generic record.- Returns:
- a generic record.
-