org.apache.flume.source.avro
Class AvroFlumeEvent.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<AvroFlumeEvent>
          extended by org.apache.flume.source.avro.AvroFlumeEvent.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroFlumeEvent>
Enclosing class:
AvroFlumeEvent

public static class AvroFlumeEvent.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroFlumeEvent>
implements org.apache.avro.data.RecordBuilder<AvroFlumeEvent>

RecordBuilder for AvroFlumeEvent instances.


Method Summary
 AvroFlumeEvent build()
           
 AvroFlumeEvent.Builder clearBody()
          Clears the value of the 'body' field
 AvroFlumeEvent.Builder clearHeaders()
          Clears the value of the 'headers' field
 ByteBuffer getBody()
          Gets the value of the 'body' field
 Map<CharSequence,CharSequence> getHeaders()
          Gets the value of the 'headers' field
 boolean hasBody()
          Checks whether the 'body' field has been set
 boolean hasHeaders()
          Checks whether the 'headers' field has been set
 AvroFlumeEvent.Builder setBody(ByteBuffer value)
          Sets the value of the 'body' field
 AvroFlumeEvent.Builder setHeaders(Map<CharSequence,CharSequence> 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeaders

public Map<CharSequence,CharSequence> getHeaders()
Gets the value of the 'headers' field


setHeaders

public AvroFlumeEvent.Builder setHeaders(Map<CharSequence,CharSequence> value)
Sets the value of the 'headers' field


hasHeaders

public boolean hasHeaders()
Checks whether the 'headers' field has been set


clearHeaders

public AvroFlumeEvent.Builder clearHeaders()
Clears the value of the 'headers' field


getBody

public ByteBuffer getBody()
Gets the value of the 'body' field


setBody

public AvroFlumeEvent.Builder setBody(ByteBuffer value)
Sets the value of the 'body' field


hasBody

public boolean hasBody()
Checks whether the 'body' field has been set


clearBody

public AvroFlumeEvent.Builder clearBody()
Clears the value of the 'body' field


build

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


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.