|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avro.data.RecordBuilderBase<T> org.apache.avro.specific.SpecificRecordBuilderBase<AvroFlumeEvent> org.apache.flume.source.avro.AvroFlumeEvent.Builder
public static class AvroFlumeEvent.Builder
RecordBuilder for AvroFlumeEvent instances.
Method Summary | |
---|---|
AvroFlumeEvent |
build()
|
AvroFlumeEvent.Builder |
clearBody()
Clears the value of the 'body' field |
AvroFlumeEvent.Builder |
clearHeaders()
Clears the value of the 'headers' field |
ByteBuffer |
getBody()
Gets the value of the 'body' field |
Map<CharSequence,CharSequence> |
getHeaders()
Gets the value of the 'headers' field |
boolean |
hasBody()
Checks whether the 'body' field has been set |
boolean |
hasHeaders()
Checks whether the 'headers' field has been set |
AvroFlumeEvent.Builder |
setBody(ByteBuffer value)
Sets the value of the 'body' field |
AvroFlumeEvent.Builder |
setHeaders(Map<CharSequence,CharSequence> value)
Sets the value of the 'headers' 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 |
---|
public Map<CharSequence,CharSequence> getHeaders()
public AvroFlumeEvent.Builder setHeaders(Map<CharSequence,CharSequence> value)
public boolean hasHeaders()
public AvroFlumeEvent.Builder clearHeaders()
public ByteBuffer getBody()
public AvroFlumeEvent.Builder setBody(ByteBuffer value)
public boolean hasBody()
public AvroFlumeEvent.Builder clearBody()
public AvroFlumeEvent build()
build
in interface org.apache.avro.data.RecordBuilder<AvroFlumeEvent>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |