接口 GenericRecordBuilder

    • 方法详细资料

      • 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.