org.apache.avro.ipc.trace
Class TimestampedEvent.Builder

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

public static class TimestampedEvent.Builder
extends SpecificRecordBuilderBase<TimestampedEvent>
implements RecordBuilder<TimestampedEvent>

RecordBuilder for TimestampedEvent instances.


Method Summary
 TimestampedEvent build()
          Constructs a new instance using the values set in the RecordBuilder.
 TimestampedEvent.Builder clearEvent()
          Clears the value of the 'event' field
 TimestampedEvent.Builder clearTimeStamp()
          Clears the value of the 'timeStamp' field
 Object getEvent()
          Gets the value of the 'event' field
 Long getTimeStamp()
          Gets the value of the 'timeStamp' field
 boolean hasEvent()
          Checks whether the 'event' field has been set
 boolean hasTimeStamp()
          Checks whether the 'timeStamp' field has been set
 TimestampedEvent.Builder setEvent(Object value)
          Sets the value of the 'event' field
 TimestampedEvent.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 TimestampedEvent.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 TimestampedEvent.Builder clearTimeStamp()
Clears the value of the 'timeStamp' field


getEvent

public Object getEvent()
Gets the value of the 'event' field


setEvent

public TimestampedEvent.Builder setEvent(Object value)
Sets the value of the 'event' field


hasEvent

public boolean hasEvent()
Checks whether the 'event' field has been set


clearEvent

public TimestampedEvent.Builder clearEvent()
Clears the value of the 'event' field


build

public TimestampedEvent build()
Description copied from interface: RecordBuilder
Constructs a new instance using the values set in the RecordBuilder. If a particular value was not set and the schema defines a default value, the default value will be used.

Specified by:
build in interface RecordBuilder<TimestampedEvent>
Returns:
a new instance using values set in the RecordBuilder.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.