org.apache.flume.source.avro
Class AvroFlumeEvent

java.lang.Object
  extended by org.apache.avro.specific.SpecificRecordBase
      extended by org.apache.flume.source.avro.AvroFlumeEvent
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 AvroFlumeEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord


Nested Class Summary
static class AvroFlumeEvent.Builder
          RecordBuilder for AvroFlumeEvent instances.
 
Field Summary
 ByteBuffer body
          Deprecated. 
 Map<CharSequence,CharSequence> headers
          Deprecated. 
static org.apache.avro.Schema SCHEMA$
           
 
Constructor Summary
AvroFlumeEvent()
           
 
Method Summary
 Object get(int field$)
           
 ByteBuffer getBody()
          Gets the value of the 'body' field.
 Map<CharSequence,CharSequence> getHeaders()
          Gets the value of the 'headers' field.
 org.apache.avro.Schema getSchema()
           
static AvroFlumeEvent.Builder newBuilder()
          Creates a new AvroFlumeEvent RecordBuilder
static AvroFlumeEvent.Builder newBuilder(AvroFlumeEvent.Builder other)
          Creates a new AvroFlumeEvent RecordBuilder by copying an existing Builder
static AvroFlumeEvent.Builder newBuilder(AvroFlumeEvent other)
          Creates a new AvroFlumeEvent RecordBuilder by copying an existing AvroFlumeEvent instance
 void put(int field$, Object value$)
           
 void setBody(ByteBuffer value)
          Sets the value of the 'body' field.
 void setHeaders(Map<CharSequence,CharSequence> value)
          Sets the value of the 'headers' 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$

headers

@Deprecated
public Map<CharSequence,CharSequence> headers
Deprecated. 

body

@Deprecated
public ByteBuffer body
Deprecated. 
Constructor Detail

AvroFlumeEvent

public AvroFlumeEvent()
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

getHeaders

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


setHeaders

public void setHeaders(Map<CharSequence,CharSequence> value)
Sets the value of the 'headers' 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.

newBuilder

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


newBuilder

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


newBuilder

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



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