org.apache.hadoop.hive.serde.test
Class ThriftTestObj
java.lang.Object
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
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
ThriftTestObj
public ThriftTestObj()
ThriftTestObj
public ThriftTestObj(int field1,
String field2,
List<InnerStruct> field3)
ThriftTestObj
public ThriftTestObj(ThriftTestObj other)
- Performs a deep copy on other.
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