org.apache.hadoop.mapreduce.jobhistory
Class Event.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<Event>
          extended by org.apache.hadoop.mapreduce.jobhistory.Event.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Event>
Enclosing class:
Event

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

RecordBuilder for Event instances.


Method Summary
 Event build()
           
 Event.Builder clearEvent()
          Clears the value of the 'event' field
 Event.Builder clearType()
          Clears the value of the 'type' field
 Object getEvent()
          Gets the value of the 'event' field
 EventType getType()
          Gets the value of the 'type' field
 boolean hasEvent()
          Checks whether the 'event' field has been set
 boolean hasType()
          Checks whether the 'type' field has been set
 Event.Builder setEvent(Object value)
          Sets the value of the 'event' field
 Event.Builder setType(EventType value)
          Sets the value of the 'type' 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

getType

public EventType getType()
Gets the value of the 'type' field


setType

public Event.Builder setType(EventType value)
Sets the value of the 'type' field


hasType

public boolean hasType()
Checks whether the 'type' field has been set


clearType

public Event.Builder clearType()
Clears the value of the 'type' field


getEvent

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


setEvent

public Event.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 Event.Builder clearEvent()
Clears the value of the 'event' field


build

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


Copyright © 2013 Apache Software Foundation. All Rights Reserved.