org.apache.hadoop.hive.serde2.thrift.test
Class MiniStruct

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

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

See Also:
Serialized Form

Nested Class Summary
static class MiniStruct._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<MiniStruct._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
MiniStruct()
           
MiniStruct(MiniStruct other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(MiniStruct other)
           
 MiniStruct deepCopy()
           
 boolean equals(MiniStruct that)
           
 boolean equals(Object that)
           
 MiniStruct._Fields fieldForId(int fieldId)
           
 Object getFieldValue(MiniStruct._Fields field)
           
 MyEnum getMy_enum()
           
 String getMy_string()
           
 int hashCode()
           
 boolean isSet(MiniStruct._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetMy_enum()
          Returns true if field my_enum is set (has been assigned a value) and false otherwise
 boolean isSetMy_string()
          Returns true if field my_string is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(MiniStruct._Fields field, Object value)
           
 void setMy_enum(MyEnum my_enum)
           
 void setMy_enumIsSet(boolean value)
           
 void setMy_string(String my_string)
           
 void setMy_stringIsSet(boolean value)
           
 String toString()
           
 void unsetMy_enum()
           
 void unsetMy_string()
           
 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<MiniStruct._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

MiniStruct

public MiniStruct()

MiniStruct

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

Method Detail

deepCopy

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

clear

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

getMy_string

public String getMy_string()

setMy_string

public void setMy_string(String my_string)

unsetMy_string

public void unsetMy_string()

isSetMy_string

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


setMy_stringIsSet

public void setMy_stringIsSet(boolean value)

getMy_enum

public MyEnum getMy_enum()
See Also:
MyEnum

setMy_enum

public void setMy_enum(MyEnum my_enum)
See Also:
MyEnum

unsetMy_enum

public void unsetMy_enum()

isSetMy_enum

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


setMy_enumIsSet

public void setMy_enumIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(MiniStruct._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<MiniStruct,MiniStruct._Fields>

equals

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

equals

public boolean equals(MiniStruct that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public MiniStruct._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<MiniStruct,MiniStruct._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<MiniStruct,MiniStruct._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<MiniStruct,MiniStruct._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 © 2012 The Apache Software Foundation