Package org.voltdb.stream.api.kafka
Class Headers.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Headers>
- Enclosing class:
Headers
public static class Headers.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<Headers>
implements org.apache.avro.data.RecordBuilder<Headers>
RecordBuilder for Headers instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Clears the value of the 'headers' field.Gets the value of the 'headers' field.boolean
Checks whether the 'headers' field has been set.setHeaders
(Map<String, String> value) Sets the value of the 'headers' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getHeaders
Gets the value of the 'headers' field.- Returns:
- The value.
-
setHeaders
Sets the value of the 'headers' field.- Parameters:
value
- The value of 'headers'.- Returns:
- This builder.
-
hasHeaders
public boolean hasHeaders()Checks whether the 'headers' field has been set.- Returns:
- True if the 'headers' field has been set, false otherwise.
-
clearHeaders
Clears the value of the 'headers' field.- Returns:
- This builder.
-
build
- Specified by:
build
in interfaceorg.apache.avro.data.RecordBuilder<Headers>
-