@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2017-09-01") public class ThriftFlumeEvent extends Object implements org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>, Serializable, Cloneable, Comparable<ThriftFlumeEvent>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ThriftFlumeEvent._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
ByteBuffer | 
body  | 
Map<String,String> | 
headers  | 
static Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> | 
metaDataMap  | 
| Constructor and Description | 
|---|
ThriftFlumeEvent()  | 
ThriftFlumeEvent(Map<String,String> headers,
                ByteBuffer body)  | 
ThriftFlumeEvent(ThriftFlumeEvent other)
Performs a deep copy on other. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ByteBuffer | 
bufferForBody()  | 
void | 
clear()  | 
int | 
compareTo(ThriftFlumeEvent other)  | 
ThriftFlumeEvent | 
deepCopy()  | 
boolean | 
equals(Object that)  | 
boolean | 
equals(ThriftFlumeEvent that)  | 
ThriftFlumeEvent._Fields | 
fieldForId(int fieldId)  | 
byte[] | 
getBody()  | 
Object | 
getFieldValue(ThriftFlumeEvent._Fields field)  | 
Map<String,String> | 
getHeaders()  | 
int | 
getHeadersSize()  | 
int | 
hashCode()  | 
boolean | 
isSet(ThriftFlumeEvent._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise 
 | 
boolean | 
isSetBody()
Returns true if field body is set (has been assigned a value) and false otherwise 
 | 
boolean | 
isSetHeaders()
Returns true if field headers is set (has been assigned a value) and false otherwise 
 | 
void | 
putToHeaders(String key,
            String val)  | 
void | 
read(org.apache.thrift.protocol.TProtocol iprot)  | 
ThriftFlumeEvent | 
setBody(byte[] body)  | 
ThriftFlumeEvent | 
setBody(ByteBuffer body)  | 
void | 
setBodyIsSet(boolean value)  | 
void | 
setFieldValue(ThriftFlumeEvent._Fields field,
             Object value)  | 
ThriftFlumeEvent | 
setHeaders(Map<String,String> headers)  | 
void | 
setHeadersIsSet(boolean value)  | 
String | 
toString()  | 
void | 
unsetBody()  | 
void | 
unsetHeaders()  | 
void | 
validate()  | 
void | 
write(org.apache.thrift.protocol.TProtocol oprot)  | 
public ByteBuffer body
public static final Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ThriftFlumeEvent()
public ThriftFlumeEvent(Map<String,String> headers, ByteBuffer body)
public ThriftFlumeEvent(ThriftFlumeEvent other)
public ThriftFlumeEvent deepCopy()
deepCopy in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public void clear()
clear in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public int getHeadersSize()
public ThriftFlumeEvent setHeaders(Map<String,String> headers)
public void unsetHeaders()
public boolean isSetHeaders()
public void setHeadersIsSet(boolean value)
public byte[] getBody()
public ByteBuffer bufferForBody()
public ThriftFlumeEvent setBody(byte[] body)
public ThriftFlumeEvent setBody(ByteBuffer body)
public void unsetBody()
public boolean isSetBody()
public void setBodyIsSet(boolean value)
public void setFieldValue(ThriftFlumeEvent._Fields field, Object value)
setFieldValue in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public Object getFieldValue(ThriftFlumeEvent._Fields field)
getFieldValue in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public boolean isSet(ThriftFlumeEvent._Fields field)
isSet in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public boolean equals(ThriftFlumeEvent that)
public int compareTo(ThriftFlumeEvent other)
compareTo in interface Comparable<ThriftFlumeEvent>public ThriftFlumeEvent._Fields fieldForId(int fieldId)
fieldForId in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
read in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void validate()
              throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2009-2022 Apache Software Foundation. All Rights Reserved.