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

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

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

See Also:
Serialized Form

Nested Class Summary
static class IntString._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<IntString._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
IntString()
           
IntString(IntString other)
          Performs a deep copy on other.
IntString(int myint, String myString, int underscore_int)
           
 
Method Summary
 void clear()
           
 int compareTo(IntString other)
           
 IntString deepCopy()
           
 boolean equals(IntString that)
           
 boolean equals(Object that)
           
 IntString._Fields fieldForId(int fieldId)
           
 Object getFieldValue(IntString._Fields field)
           
 int getMyint()
           
 String getMyString()
           
 int getUnderscore_int()
           
 int hashCode()
           
 boolean isSet(IntString._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetMyint()
          Returns true if field myint is set (has been assigned a value) and false otherwise
 boolean isSetMyString()
          Returns true if field myString is set (has been assigned a value) and false otherwise
 boolean isSetUnderscore_int()
          Returns true if field underscore_int is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(IntString._Fields field, Object value)
           
 void setMyint(int myint)
           
 void setMyintIsSet(boolean value)
           
 void setMyString(String myString)
           
 void setMyStringIsSet(boolean value)
           
 void setUnderscore_int(int underscore_int)
           
 void setUnderscore_intIsSet(boolean value)
           
 String toString()
           
 void unsetMyint()
           
 void unsetMyString()
           
 void unsetUnderscore_int()
           
 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<IntString._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

IntString

public IntString()

IntString

public IntString(int myint,
                 String myString,
                 int underscore_int)

IntString

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

Method Detail

deepCopy

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

clear

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

getMyint

public int getMyint()

setMyint

public void setMyint(int myint)

unsetMyint

public void unsetMyint()

isSetMyint

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


setMyintIsSet

public void setMyintIsSet(boolean value)

getMyString

public String getMyString()

setMyString

public void setMyString(String myString)

unsetMyString

public void unsetMyString()

isSetMyString

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


setMyStringIsSet

public void setMyStringIsSet(boolean value)

getUnderscore_int

public int getUnderscore_int()

setUnderscore_int

public void setUnderscore_int(int underscore_int)

unsetUnderscore_int

public void unsetUnderscore_int()

isSetUnderscore_int

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


setUnderscore_intIsSet

public void setUnderscore_intIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(IntString that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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