org.apache.hadoop.hive.serde.test
Class ThriftTestObj

java.lang.Object
  extended by org.apache.hadoop.hive.serde.test.ThriftTestObj
All Implemented Interfaces:
Serializable, Cloneable, Comparable<ThriftTestObj>, org.apache.thrift.TBase<ThriftTestObj,ThriftTestObj._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class ThriftTestObj._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<ThriftTestObj._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
ThriftTestObj()
           
ThriftTestObj(int field1, String field2, List<InnerStruct> field3)
           
ThriftTestObj(ThriftTestObj other)
          Performs a deep copy on other.
 
Method Summary
 void addToField3(InnerStruct elem)
           
 void clear()
           
 int compareTo(ThriftTestObj other)
           
 ThriftTestObj deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(ThriftTestObj that)
           
 ThriftTestObj._Fields fieldForId(int fieldId)
           
 int getField1()
           
 String getField2()
           
 List<InnerStruct> getField3()
           
 Iterator<InnerStruct> getField3Iterator()
           
 int getField3Size()
           
 Object getFieldValue(ThriftTestObj._Fields field)
           
 int hashCode()
           
 boolean isSet(ThriftTestObj._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetField1()
          Returns true if field field1 is set (has been assigned a value) and false otherwise
 boolean isSetField2()
          Returns true if field field2 is set (has been assigned a value) and false otherwise
 boolean isSetField3()
          Returns true if field field3 is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setField1(int field1)
           
 void setField1IsSet(boolean value)
           
 void setField2(String field2)
           
 void setField2IsSet(boolean value)
           
 void setField3(List<InnerStruct> field3)
           
 void setField3IsSet(boolean value)
           
 void setFieldValue(ThriftTestObj._Fields field, Object value)
           
 String toString()
           
 void unsetField1()
           
 void unsetField2()
           
 void unsetField3()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

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

ThriftTestObj

public ThriftTestObj()

ThriftTestObj

public ThriftTestObj(int field1,
                     String field2,
                     List<InnerStruct> field3)

ThriftTestObj

public ThriftTestObj(ThriftTestObj other)
Performs a deep copy on other.

Method Detail

deepCopy

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

clear

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

getField1

public int getField1()

setField1

public void setField1(int field1)

unsetField1

public void unsetField1()

isSetField1

public boolean isSetField1()
Returns true if field field1 is set (has been assigned a value) and false otherwise


setField1IsSet

public void setField1IsSet(boolean value)

getField2

public String getField2()

setField2

public void setField2(String field2)

unsetField2

public void unsetField2()

isSetField2

public boolean isSetField2()
Returns true if field field2 is set (has been assigned a value) and false otherwise


setField2IsSet

public void setField2IsSet(boolean value)

getField3Size

public int getField3Size()

getField3Iterator

public Iterator<InnerStruct> getField3Iterator()

addToField3

public void addToField3(InnerStruct elem)

getField3

public List<InnerStruct> getField3()

setField3

public void setField3(List<InnerStruct> field3)

unsetField3

public void unsetField3()

isSetField3

public boolean isSetField3()
Returns true if field field3 is set (has been assigned a value) and false otherwise


setField3IsSet

public void setField3IsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(ThriftTestObj._Fields field)
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<ThriftTestObj,ThriftTestObj._Fields>

equals

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

equals

public boolean equals(ThriftTestObj that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(ThriftTestObj other)
Specified by:
compareTo in interface Comparable<ThriftTestObj>

fieldForId

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

read

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

write

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

toString

public String toString()
Overrides:
toString in class Object

validate

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


Copyright © 2013 The Apache Software Foundation