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

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

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

See Also:
Serialized Form

Nested Class Summary
static class Complex._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<Complex._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
Complex()
           
Complex(Complex other)
          Performs a deep copy on other.
Complex(int aint, String aString, List<Integer> lint, List<String> lString, List<IntString> lintString, Map<String,String> mStringString)
           
 
Method Summary
 void addToLint(int elem)
           
 void addToLintString(IntString elem)
           
 void addToLString(String elem)
           
 void clear()
           
 int compareTo(Complex other)
           
 Complex deepCopy()
           
 boolean equals(Complex that)
           
 boolean equals(Object that)
           
 Complex._Fields fieldForId(int fieldId)
           
 int getAint()
           
 String getAString()
           
 Object getFieldValue(Complex._Fields field)
           
 List<Integer> getLint()
           
 Iterator<Integer> getLintIterator()
           
 int getLintSize()
           
 List<IntString> getLintString()
           
 Iterator<IntString> getLintStringIterator()
           
 int getLintStringSize()
           
 List<String> getLString()
           
 Iterator<String> getLStringIterator()
           
 int getLStringSize()
           
 Map<String,String> getMStringString()
           
 int getMStringStringSize()
           
 int hashCode()
           
 boolean isSet(Complex._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetAint()
          Returns true if field aint is set (has been assigned a value) and false otherwise
 boolean isSetAString()
          Returns true if field aString is set (has been assigned a value) and false otherwise
 boolean isSetLint()
          Returns true if field lint is set (has been assigned a value) and false otherwise
 boolean isSetLintString()
          Returns true if field lintString is set (has been assigned a value) and false otherwise
 boolean isSetLString()
          Returns true if field lString is set (has been assigned a value) and false otherwise
 boolean isSetMStringString()
          Returns true if field mStringString is set (has been assigned a value) and false otherwise
 void putToMStringString(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAint(int aint)
           
 void setAintIsSet(boolean value)
           
 void setAString(String aString)
           
 void setAStringIsSet(boolean value)
           
 void setFieldValue(Complex._Fields field, Object value)
           
 void setLint(List<Integer> lint)
           
 void setLintIsSet(boolean value)
           
 void setLintString(List<IntString> lintString)
           
 void setLintStringIsSet(boolean value)
           
 void setLString(List<String> lString)
           
 void setLStringIsSet(boolean value)
           
 void setMStringString(Map<String,String> mStringString)
           
 void setMStringStringIsSet(boolean value)
           
 String toString()
           
 void unsetAint()
           
 void unsetAString()
           
 void unsetLint()
           
 void unsetLintString()
           
 void unsetLString()
           
 void unsetMStringString()
           
 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<Complex._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Complex

public Complex()

Complex

public Complex(int aint,
               String aString,
               List<Integer> lint,
               List<String> lString,
               List<IntString> lintString,
               Map<String,String> mStringString)

Complex

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

Method Detail

deepCopy

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

clear

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

getAint

public int getAint()

setAint

public void setAint(int aint)

unsetAint

public void unsetAint()

isSetAint

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


setAintIsSet

public void setAintIsSet(boolean value)

getAString

public String getAString()

setAString

public void setAString(String aString)

unsetAString

public void unsetAString()

isSetAString

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


setAStringIsSet

public void setAStringIsSet(boolean value)

getLintSize

public int getLintSize()

getLintIterator

public Iterator<Integer> getLintIterator()

addToLint

public void addToLint(int elem)

getLint

public List<Integer> getLint()

setLint

public void setLint(List<Integer> lint)

unsetLint

public void unsetLint()

isSetLint

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


setLintIsSet

public void setLintIsSet(boolean value)

getLStringSize

public int getLStringSize()

getLStringIterator

public Iterator<String> getLStringIterator()

addToLString

public void addToLString(String elem)

getLString

public List<String> getLString()

setLString

public void setLString(List<String> lString)

unsetLString

public void unsetLString()

isSetLString

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


setLStringIsSet

public void setLStringIsSet(boolean value)

getLintStringSize

public int getLintStringSize()

getLintStringIterator

public Iterator<IntString> getLintStringIterator()

addToLintString

public void addToLintString(IntString elem)

getLintString

public List<IntString> getLintString()

setLintString

public void setLintString(List<IntString> lintString)

unsetLintString

public void unsetLintString()

isSetLintString

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


setLintStringIsSet

public void setLintStringIsSet(boolean value)

getMStringStringSize

public int getMStringStringSize()

putToMStringString

public void putToMStringString(String key,
                               String val)

getMStringString

public Map<String,String> getMStringString()

setMStringString

public void setMStringString(Map<String,String> mStringString)

unsetMStringString

public void unsetMStringString()

isSetMStringString

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


setMStringStringIsSet

public void setMStringStringIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(Complex that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public Complex._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<Complex,Complex._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<Complex,Complex._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<Complex,Complex._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