com.cloudera.flume.handlers.avro
Class AvroFlumeOGEvent.Builder

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

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

RecordBuilder for AvroFlumeOGEvent instances.


Method Summary
 AvroFlumeOGEvent build()
           
 AvroFlumeOGEvent.Builder clearBody()
          Clears the value of the 'body' field
 AvroFlumeOGEvent.Builder clearFields()
          Clears the value of the 'fields' field
 AvroFlumeOGEvent.Builder clearHost()
          Clears the value of the 'host' field
 AvroFlumeOGEvent.Builder clearNanos()
          Clears the value of the 'nanos' field
 AvroFlumeOGEvent.Builder clearPriority()
          Clears the value of the 'priority' field
 AvroFlumeOGEvent.Builder clearTimestamp()
          Clears the value of the 'timestamp' field
 ByteBuffer getBody()
          Gets the value of the 'body' field
 Map<CharSequence,ByteBuffer> getFields()
          Gets the value of the 'fields' field
 CharSequence getHost()
          Gets the value of the 'host' field
 Long getNanos()
          Gets the value of the 'nanos' field
 Priority getPriority()
          Gets the value of the 'priority' field
 Long getTimestamp()
          Gets the value of the 'timestamp' field
 boolean hasBody()
          Checks whether the 'body' field has been set
 boolean hasFields()
          Checks whether the 'fields' field has been set
 boolean hasHost()
          Checks whether the 'host' field has been set
 boolean hasNanos()
          Checks whether the 'nanos' field has been set
 boolean hasPriority()
          Checks whether the 'priority' field has been set
 boolean hasTimestamp()
          Checks whether the 'timestamp' field has been set
 AvroFlumeOGEvent.Builder setBody(ByteBuffer value)
          Sets the value of the 'body' field
 AvroFlumeOGEvent.Builder setFields(Map<CharSequence,ByteBuffer> value)
          Sets the value of the 'fields' field
 AvroFlumeOGEvent.Builder setHost(CharSequence value)
          Sets the value of the 'host' field
 AvroFlumeOGEvent.Builder setNanos(long value)
          Sets the value of the 'nanos' field
 AvroFlumeOGEvent.Builder setPriority(Priority value)
          Sets the value of the 'priority' field
 AvroFlumeOGEvent.Builder setTimestamp(long value)
          Sets the value of the 'timestamp' 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

getTimestamp

public Long getTimestamp()
Gets the value of the 'timestamp' field


setTimestamp

public AvroFlumeOGEvent.Builder setTimestamp(long value)
Sets the value of the 'timestamp' field


hasTimestamp

public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set


clearTimestamp

public AvroFlumeOGEvent.Builder clearTimestamp()
Clears the value of the 'timestamp' field


getPriority

public Priority getPriority()
Gets the value of the 'priority' field


setPriority

public AvroFlumeOGEvent.Builder setPriority(Priority value)
Sets the value of the 'priority' field


hasPriority

public boolean hasPriority()
Checks whether the 'priority' field has been set


clearPriority

public AvroFlumeOGEvent.Builder clearPriority()
Clears the value of the 'priority' field


getBody

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


setBody

public AvroFlumeOGEvent.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 AvroFlumeOGEvent.Builder clearBody()
Clears the value of the 'body' field


getNanos

public Long getNanos()
Gets the value of the 'nanos' field


setNanos

public AvroFlumeOGEvent.Builder setNanos(long value)
Sets the value of the 'nanos' field


hasNanos

public boolean hasNanos()
Checks whether the 'nanos' field has been set


clearNanos

public AvroFlumeOGEvent.Builder clearNanos()
Clears the value of the 'nanos' field


getHost

public CharSequence getHost()
Gets the value of the 'host' field


setHost

public AvroFlumeOGEvent.Builder setHost(CharSequence value)
Sets the value of the 'host' field


hasHost

public boolean hasHost()
Checks whether the 'host' field has been set


clearHost

public AvroFlumeOGEvent.Builder clearHost()
Clears the value of the 'host' field


getFields

public Map<CharSequence,ByteBuffer> getFields()
Gets the value of the 'fields' field


setFields

public AvroFlumeOGEvent.Builder setFields(Map<CharSequence,ByteBuffer> value)
Sets the value of the 'fields' field


hasFields

public boolean hasFields()
Checks whether the 'fields' field has been set


clearFields

public AvroFlumeOGEvent.Builder clearFields()
Clears the value of the 'fields' field


build

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


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