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, org.apache.thrift.TBase

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

See Also:
Serialized Form

Field Summary
 int field1
           
static int FIELD1
           
 String field2
           
static int FIELD2
           
 List<InnerStruct> field3
           
static int FIELD3
           
static Map<Integer,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)
           
 ThriftTestObj clone()
           
 boolean equals(Object that)
           
 boolean equals(ThriftTestObj that)
           
 int getField1()
           
 String getField2()
           
 List<InnerStruct> getField3()
           
 Iterator<InnerStruct> getField3Iterator()
           
 int getField3Size()
           
 Object getFieldValue(int fieldID)
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetField1()
           
 boolean isSetField2()
           
 boolean isSetField3()
           
 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(int fieldID, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

field1

public int field1

FIELD1

public static final int FIELD1
See Also:
Constant Field Values

field2

public String field2

FIELD2

public static final int FIELD2
See Also:
Constant Field Values

field3

public List<InnerStruct> field3

FIELD3

public static final int FIELD3
See Also:
Constant Field Values

metaDataMap

public static final Map<Integer,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

clone

public ThriftTestObj clone()
Overrides:
clone in class Object

getField1

public int getField1()

setField1

public void setField1(int field1)

unsetField1

public void unsetField1()

isSetField1

public boolean isSetField1()

setField1IsSet

public void setField1IsSet(boolean value)

getField2

public String getField2()

setField2

public void setField2(String field2)

unsetField2

public void unsetField2()

isSetField2

public boolean isSetField2()

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()

setField3IsSet

public void setField3IsSet(boolean value)

setFieldValue

public void setFieldValue(int fieldID,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase

getFieldValue

public Object getFieldValue(int fieldID)
Specified by:
getFieldValue in interface org.apache.thrift.TBase

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase
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
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 © 2009 The Apache Software Foundation