Class Headers.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<Headers>
org.apache.avro.specific.SpecificRecordBuilderBase<Headers>
org.voltdb.stream.api.kafka.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 Details

    • getHeaders

      public Map<String,String> getHeaders()
      Gets the value of the 'headers' field.
      Returns:
      The value.
    • setHeaders

      public Headers.Builder setHeaders(Map<String,String> value)
      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

      public Headers.Builder clearHeaders()
      Clears the value of the 'headers' field.
      Returns:
      This builder.
    • build

      public Headers build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<Headers>