public class AvroFlumeOGEvent
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
AvroFlumeOGEvent.Builder
RecordBuilder for AvroFlumeOGEvent instances.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AvroFlumeOGEvent()
Default constructor.
|
AvroFlumeOGEvent(Long timestamp,
Priority priority,
ByteBuffer body,
Long nanos,
CharSequence host,
Map<CharSequence,ByteBuffer> fields)
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,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.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public long timestamp
@Deprecated public Priority priority
@Deprecated public ByteBuffer body
@Deprecated public long nanos
@Deprecated public CharSequence host
@Deprecated public Map<CharSequence,ByteBuffer> fields
public AvroFlumeOGEvent()
public AvroFlumeOGEvent(Long timestamp, Priority priority, ByteBuffer body, Long nanos, CharSequence host, Map<CharSequence,ByteBuffer> fields)
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 Long getTimestamp()
public void setTimestamp(Long value)
value - the value to set.public Priority getPriority()
public void setPriority(Priority value)
value - the value to set.public ByteBuffer getBody()
public void setBody(ByteBuffer value)
value - the value to set.public Long getNanos()
public void setNanos(Long value)
value - the value to set.public CharSequence getHost()
public void setHost(CharSequence value)
value - the value to set.public Map<CharSequence,ByteBuffer> getFields()
public void setFields(Map<CharSequence,ByteBuffer> value)
value - the value to set.public static AvroFlumeOGEvent.Builder newBuilder()
public static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent.Builder other)
public static AvroFlumeOGEvent.Builder newBuilder(AvroFlumeOGEvent other)
Copyright © 2009-2017 Apache Software Foundation. All Rights Reserved.