public class ThriftFlumeEvent extends Object implements org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>, Serializable, Cloneable
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,ByteBuffer> |
fields |
String |
host |
static Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
nanos |
Priority |
priority |
long |
timestamp |
Constructor and Description |
---|
ThriftFlumeEvent() |
ThriftFlumeEvent(long timestamp,
Priority priority,
ByteBuffer body,
long nanos,
String host,
Map<String,ByteBuffer> fields) |
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() |
Map<String,ByteBuffer> |
getFields() |
int |
getFieldsSize() |
Object |
getFieldValue(ThriftFlumeEvent._Fields field) |
String |
getHost() |
long |
getNanos() |
Priority |
getPriority() |
long |
getTimestamp() |
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 |
isSetFields()
Returns true if field fields is set (has been assigned a value) and false otherwise
|
boolean |
isSetHost()
Returns true if field host is set (has been assigned a value) and false otherwise
|
boolean |
isSetNanos()
Returns true if field nanos is set (has been assigned a value) and false otherwise
|
boolean |
isSetPriority()
Returns true if field priority is set (has been assigned a value) and false otherwise
|
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise
|
void |
putToFields(String key,
ByteBuffer val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
ThriftFlumeEvent |
setBody(byte[] body) |
ThriftFlumeEvent |
setBody(ByteBuffer body) |
void |
setBodyIsSet(boolean value) |
ThriftFlumeEvent |
setFields(Map<String,ByteBuffer> fields) |
void |
setFieldsIsSet(boolean value) |
void |
setFieldValue(ThriftFlumeEvent._Fields field,
Object value) |
ThriftFlumeEvent |
setHost(String host) |
void |
setHostIsSet(boolean value) |
ThriftFlumeEvent |
setNanos(long nanos) |
void |
setNanosIsSet(boolean value) |
ThriftFlumeEvent |
setPriority(Priority priority) |
void |
setPriorityIsSet(boolean value) |
ThriftFlumeEvent |
setTimestamp(long timestamp) |
void |
setTimestampIsSet(boolean value) |
String |
toString() |
void |
unsetBody() |
void |
unsetFields() |
void |
unsetHost() |
void |
unsetNanos() |
void |
unsetPriority() |
void |
unsetTimestamp() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public long timestamp
public ByteBuffer body
public long nanos
public String host
public Map<String,ByteBuffer> fields
public static final Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ThriftFlumeEvent()
public ThriftFlumeEvent(long timestamp, Priority priority, ByteBuffer body, long nanos, String host, Map<String,ByteBuffer> fields)
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 long getTimestamp()
public ThriftFlumeEvent setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public ThriftFlumeEvent setPriority(Priority priority)
Priority
public void unsetPriority()
public boolean isSetPriority()
public void setPriorityIsSet(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 long getNanos()
public ThriftFlumeEvent setNanos(long nanos)
public void unsetNanos()
public boolean isSetNanos()
public void setNanosIsSet(boolean value)
public String getHost()
public ThriftFlumeEvent setHost(String host)
public void unsetHost()
public boolean isSetHost()
public void setHostIsSet(boolean value)
public int getFieldsSize()
public void putToFields(String key, ByteBuffer val)
public Map<String,ByteBuffer> getFields()
public ThriftFlumeEvent setFields(Map<String,ByteBuffer> fields)
public void unsetFields()
public boolean isSetFields()
public void setFieldsIsSet(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.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.