public class AvroFlumeEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroFlumeEvent.Builder
RecordBuilder for AvroFlumeEvent instances.
|
| Modifier and Type | Field and Description |
|---|---|
ByteBuffer |
body
Deprecated.
|
Map<CharSequence,CharSequence> |
headers
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
AvroFlumeEvent()
Default constructor.
|
AvroFlumeEvent(Map<CharSequence,CharSequence> headers,
ByteBuffer body)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
ByteBuffer |
getBody()
Gets the value of the 'body' field.
|
static org.apache.avro.Schema |
getClassSchema() |
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.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public Map<CharSequence,CharSequence> headers
@Deprecated public ByteBuffer body
public AvroFlumeEvent()
public AvroFlumeEvent(Map<CharSequence,CharSequence> headers, ByteBuffer body)
public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic Map<CharSequence,CharSequence> getHeaders()
public void setHeaders(Map<CharSequence,CharSequence> value)
value - the value to set.public ByteBuffer getBody()
public void setBody(ByteBuffer value)
value - the value to set.public static AvroFlumeEvent.Builder newBuilder()
public static AvroFlumeEvent.Builder newBuilder(AvroFlumeEvent.Builder other)
public static AvroFlumeEvent.Builder newBuilder(AvroFlumeEvent other)
Copyright © 2009-2015 Apache Software Foundation. All Rights Reserved.