com.cloudera.flume.handlers.avro
Class AvroFlumeOGEvent

java.lang.Object
  extended by org.apache.avro.specific.SpecificRecordBase
      extended by com.cloudera.flume.handlers.avro.AvroFlumeOGEvent
All Implemented Interfaces:
Comparable<org.apache.avro.specific.SpecificRecord>, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificRecord

public class AvroFlumeOGEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord


Nested Class Summary
static class AvroFlumeOGEvent.Builder
          RecordBuilder for AvroFlumeOGEvent instances.
 
Field Summary
 ByteBuffer body
          Deprecated. 
 Map<CharSequence,ByteBuffer> fields
          Deprecated. 
 CharSequence host
          Deprecated. 
 long nanos
          Deprecated. 
 Priority priority
          Deprecated. 
static org.apache.avro.Schema SCHEMA$
           
 long timestamp
          Deprecated. 
 
Constructor Summary
AvroFlumeOGEvent()
           
 
Method Summary
 Object get(int 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.
 org.apache.avro.Schema getSchema()
           
 Long getTimestamp()
          Gets the value of the 'timestamp' field.
static AvroFlumeOGEvent.Builder newBuilder()
          Creates a new AvroFlumeOGEvent RecordBuilder
static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent.Builder other)
          Creates a new AvroFlumeOGEvent RecordBuilder by copying an existing Builder
static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent other)
          Creates a new AvroFlumeOGEvent RecordBuilder by copying an existing AvroFlumeOGEvent instance
 void put(int field$, Object value$)
           
 void setBody(ByteBuffer value)
          Sets the value of the 'body' field.
 void setFields(Map<CharSequence,ByteBuffer> value)
          Sets the value of the 'fields' field.
 void setHost(CharSequence value)
          Sets the value of the 'host' field.
 void setNanos(Long value)
          Sets the value of the 'nanos' field.
 void setPriority(Priority value)
          Sets the value of the 'priority' field.
 void setTimestamp(Long value)
          Sets the value of the 'timestamp' field.
 
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEMA$

public static final org.apache.avro.Schema SCHEMA$

timestamp

@Deprecated
public long timestamp
Deprecated. 

priority

@Deprecated
public Priority priority
Deprecated. 

body

@Deprecated
public ByteBuffer body
Deprecated. 

nanos

@Deprecated
public long nanos
Deprecated. 

host

@Deprecated
public CharSequence host
Deprecated. 

fields

@Deprecated
public Map<CharSequence,ByteBuffer> fields
Deprecated. 
Constructor Detail

AvroFlumeOGEvent

public AvroFlumeOGEvent()
Method Detail

getSchema

public org.apache.avro.Schema getSchema()
Specified by:
getSchema in interface org.apache.avro.generic.GenericContainer
Specified by:
getSchema in class org.apache.avro.specific.SpecificRecordBase

get

public Object get(int field$)
Specified by:
get in interface org.apache.avro.generic.IndexedRecord
Specified by:
get in class org.apache.avro.specific.SpecificRecordBase

put

public void put(int field$,
                Object value$)
Specified by:
put in interface org.apache.avro.generic.IndexedRecord
Specified by:
put in class org.apache.avro.specific.SpecificRecordBase

getTimestamp

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


setTimestamp

public void setTimestamp(Long value)
Sets the value of the 'timestamp' field.

Parameters:
value - the value to set.

getPriority

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


setPriority

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

Parameters:
value - the value to set.

getBody

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


setBody

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

Parameters:
value - the value to set.

getNanos

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


setNanos

public void setNanos(Long value)
Sets the value of the 'nanos' field.

Parameters:
value - the value to set.

getHost

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


setHost

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

Parameters:
value - the value to set.

getFields

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


setFields

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

Parameters:
value - the value to set.

newBuilder

public static AvroFlumeOGEvent.Builder newBuilder()
Creates a new AvroFlumeOGEvent RecordBuilder


newBuilder

public static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent.Builder other)
Creates a new AvroFlumeOGEvent RecordBuilder by copying an existing Builder


newBuilder

public static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent other)
Creates a new AvroFlumeOGEvent RecordBuilder by copying an existing AvroFlumeOGEvent instance



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