com.cloudera.flume.handlers.thrift
Class ThriftFlumeEvent

java.lang.Object
  extended by com.cloudera.flume.handlers.thrift.ThriftFlumeEvent
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ThriftFlumeEvent>, org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

Deprecated.

@Deprecated
public class ThriftFlumeEvent
extends Object
implements org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class ThriftFlumeEvent._Fields
          Deprecated. The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer body
          Deprecated.  
 Map<String,ByteBuffer> fields
          Deprecated.  
 String host
          Deprecated.  
static Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
          Deprecated.  
 long nanos
          Deprecated.  
 Priority priority
          Deprecated.  
 long timestamp
          Deprecated.  
 
Constructor Summary
ThriftFlumeEvent()
          Deprecated.  
ThriftFlumeEvent(long timestamp, Priority priority, ByteBuffer body, long nanos, String host, Map<String,ByteBuffer> fields)
          Deprecated.  
ThriftFlumeEvent(ThriftFlumeEvent other)
          Deprecated. Performs a deep copy on other.
 
Method Summary
 ByteBuffer bufferForBody()
          Deprecated.  
 void clear()
          Deprecated.  
 int compareTo(ThriftFlumeEvent other)
          Deprecated.  
 ThriftFlumeEvent deepCopy()
          Deprecated.  
 boolean equals(Object that)
          Deprecated.  
 boolean equals(ThriftFlumeEvent that)
          Deprecated.  
 ThriftFlumeEvent._Fields fieldForId(int fieldId)
          Deprecated.  
 byte[] getBody()
          Deprecated.  
 Map<String,ByteBuffer> getFields()
          Deprecated.  
 int getFieldsSize()
          Deprecated.  
 Object getFieldValue(ThriftFlumeEvent._Fields field)
          Deprecated.  
 String getHost()
          Deprecated.  
 long getNanos()
          Deprecated.  
 Priority getPriority()
          Deprecated.  
 long getTimestamp()
          Deprecated.  
 int hashCode()
          Deprecated.  
 boolean isSet(ThriftFlumeEvent._Fields field)
          Deprecated. Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetBody()
          Deprecated. Returns true if field body is set (has been assigned a value) and false otherwise
 boolean isSetFields()
          Deprecated. Returns true if field fields is set (has been assigned a value) and false otherwise
 boolean isSetHost()
          Deprecated. Returns true if field host is set (has been assigned a value) and false otherwise
 boolean isSetNanos()
          Deprecated. Returns true if field nanos is set (has been assigned a value) and false otherwise
 boolean isSetPriority()
          Deprecated. Returns true if field priority is set (has been assigned a value) and false otherwise
 boolean isSetTimestamp()
          Deprecated. Returns true if field timestamp is set (has been assigned a value) and false otherwise
 void putToFields(String key, ByteBuffer val)
          Deprecated.  
 void read(org.apache.thrift.protocol.TProtocol iprot)
          Deprecated.  
 ThriftFlumeEvent setBody(byte[] body)
          Deprecated.  
 ThriftFlumeEvent setBody(ByteBuffer body)
          Deprecated.  
 void setBodyIsSet(boolean value)
          Deprecated.  
 ThriftFlumeEvent setFields(Map<String,ByteBuffer> fields)
          Deprecated.  
 void setFieldsIsSet(boolean value)
          Deprecated.  
 void setFieldValue(ThriftFlumeEvent._Fields field, Object value)
          Deprecated.  
 ThriftFlumeEvent setHost(String host)
          Deprecated.  
 void setHostIsSet(boolean value)
          Deprecated.  
 ThriftFlumeEvent setNanos(long nanos)
          Deprecated.  
 void setNanosIsSet(boolean value)
          Deprecated.  
 ThriftFlumeEvent setPriority(Priority priority)
          Deprecated.  
 void setPriorityIsSet(boolean value)
          Deprecated.  
 ThriftFlumeEvent setTimestamp(long timestamp)
          Deprecated.  
 void setTimestampIsSet(boolean value)
          Deprecated.  
 String toString()
          Deprecated.  
 void unsetBody()
          Deprecated.  
 void unsetFields()
          Deprecated.  
 void unsetHost()
          Deprecated.  
 void unsetNanos()
          Deprecated.  
 void unsetPriority()
          Deprecated.  
 void unsetTimestamp()
          Deprecated.  
 void validate()
          Deprecated.  
 void write(org.apache.thrift.protocol.TProtocol oprot)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

timestamp

public long timestamp
Deprecated. 

priority

public Priority priority
Deprecated. 
See Also:
Priority

body

public ByteBuffer body
Deprecated. 

nanos

public long nanos
Deprecated. 

host

public String host
Deprecated. 

fields

public Map<String,ByteBuffer> fields
Deprecated. 

metaDataMap

public static final Map<ThriftFlumeEvent._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Deprecated. 
Constructor Detail

ThriftFlumeEvent

public ThriftFlumeEvent()
Deprecated. 

ThriftFlumeEvent

public ThriftFlumeEvent(long timestamp,
                        Priority priority,
                        ByteBuffer body,
                        long nanos,
                        String host,
                        Map<String,ByteBuffer> fields)
Deprecated. 

ThriftFlumeEvent

public ThriftFlumeEvent(ThriftFlumeEvent other)
Deprecated. 
Performs a deep copy on other.

Method Detail

deepCopy

public ThriftFlumeEvent deepCopy()
Deprecated. 
Specified by:
deepCopy in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

clear

public void clear()
Deprecated. 
Specified by:
clear in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

getTimestamp

public long getTimestamp()
Deprecated. 

setTimestamp

public ThriftFlumeEvent setTimestamp(long timestamp)
Deprecated. 

unsetTimestamp

public void unsetTimestamp()
Deprecated. 

isSetTimestamp

public boolean isSetTimestamp()
Deprecated. 
Returns true if field timestamp is set (has been assigned a value) and false otherwise


setTimestampIsSet

public void setTimestampIsSet(boolean value)
Deprecated. 

getPriority

public Priority getPriority()
Deprecated. 
See Also:
Priority

setPriority

public ThriftFlumeEvent setPriority(Priority priority)
Deprecated. 
See Also:
Priority

unsetPriority

public void unsetPriority()
Deprecated. 

isSetPriority

public boolean isSetPriority()
Deprecated. 
Returns true if field priority is set (has been assigned a value) and false otherwise


setPriorityIsSet

public void setPriorityIsSet(boolean value)
Deprecated. 

getBody

public byte[] getBody()
Deprecated. 

bufferForBody

public ByteBuffer bufferForBody()
Deprecated. 

setBody

public ThriftFlumeEvent setBody(byte[] body)
Deprecated. 

setBody

public ThriftFlumeEvent setBody(ByteBuffer body)
Deprecated. 

unsetBody

public void unsetBody()
Deprecated. 

isSetBody

public boolean isSetBody()
Deprecated. 
Returns true if field body is set (has been assigned a value) and false otherwise


setBodyIsSet

public void setBodyIsSet(boolean value)
Deprecated. 

getNanos

public long getNanos()
Deprecated. 

setNanos

public ThriftFlumeEvent setNanos(long nanos)
Deprecated. 

unsetNanos

public void unsetNanos()
Deprecated. 

isSetNanos

public boolean isSetNanos()
Deprecated. 
Returns true if field nanos is set (has been assigned a value) and false otherwise


setNanosIsSet

public void setNanosIsSet(boolean value)
Deprecated. 

getHost

public String getHost()
Deprecated. 

setHost

public ThriftFlumeEvent setHost(String host)
Deprecated. 

unsetHost

public void unsetHost()
Deprecated. 

isSetHost

public boolean isSetHost()
Deprecated. 
Returns true if field host is set (has been assigned a value) and false otherwise


setHostIsSet

public void setHostIsSet(boolean value)
Deprecated. 

getFieldsSize

public int getFieldsSize()
Deprecated. 

putToFields

public void putToFields(String key,
                        ByteBuffer val)
Deprecated. 

getFields

public Map<String,ByteBuffer> getFields()
Deprecated. 

setFields

public ThriftFlumeEvent setFields(Map<String,ByteBuffer> fields)
Deprecated. 

unsetFields

public void unsetFields()
Deprecated. 

isSetFields

public boolean isSetFields()
Deprecated. 
Returns true if field fields is set (has been assigned a value) and false otherwise


setFieldsIsSet

public void setFieldsIsSet(boolean value)
Deprecated. 

setFieldValue

public void setFieldValue(ThriftFlumeEvent._Fields field,
                          Object value)
Deprecated. 
Specified by:
setFieldValue in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

getFieldValue

public Object getFieldValue(ThriftFlumeEvent._Fields field)
Deprecated. 
Specified by:
getFieldValue in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

isSet

public boolean isSet(ThriftFlumeEvent._Fields field)
Deprecated. 
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

equals

public boolean equals(Object that)
Deprecated. 
Overrides:
equals in class Object

equals

public boolean equals(ThriftFlumeEvent that)
Deprecated. 

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

compareTo

public int compareTo(ThriftFlumeEvent other)
Deprecated. 
Specified by:
compareTo in interface Comparable<ThriftFlumeEvent>

fieldForId

public ThriftFlumeEvent._Fields fieldForId(int fieldId)
Deprecated. 
Specified by:
fieldForId in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Deprecated. 
Specified by:
read in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Deprecated. 
Specified by:
write in interface org.apache.thrift.TBase<ThriftFlumeEvent,ThriftFlumeEvent._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Deprecated. 
Throws:
org.apache.thrift.TException


Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.