org.apache.hadoop.hive.metastore.api
Class Type

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.Type
All Implemented Interfaces:
Serializable, Cloneable, org.apache.thrift.TBase

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

See Also:
Serialized Form

Field Summary
static int FIELDS
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int NAME
           
static int TYPE1
           
static int TYPE2
           
 
Constructor Summary
Type()
           
Type(String name, String type1, String type2, List<FieldSchema> fields)
           
Type(Type other)
          Performs a deep copy on other.
 
Method Summary
 void addToFields(FieldSchema elem)
           
 Type clone()
           
 boolean equals(Object that)
           
 boolean equals(Type that)
           
 List<FieldSchema> getFields()
           
 Iterator<FieldSchema> getFieldsIterator()
           
 int getFieldsSize()
           
 Object getFieldValue(int fieldID)
           
 String getName()
           
 String getType1()
           
 String getType2()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetFields()
           
 boolean isSetName()
           
 boolean isSetType1()
           
 boolean isSetType2()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFields(List<FieldSchema> fields)
           
 void setFieldValue(int fieldID, Object value)
           
 void setName(String name)
           
 void setType1(String type1)
           
 void setType2(String type2)
           
 String toString()
           
 void unsetFields()
           
 void unsetName()
           
 void unsetType1()
           
 void unsetType2()
           
 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

NAME

public static final int NAME
See Also:
Constant Field Values

TYPE1

public static final int TYPE1
See Also:
Constant Field Values

TYPE2

public static final int TYPE2
See Also:
Constant Field Values

FIELDS

public static final int FIELDS
See Also:
Constant Field Values

metaDataMap

public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

Type

public Type()

Type

public Type(String name,
            String type1,
            String type2,
            List<FieldSchema> fields)

Type

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

Method Detail

clone

public Type clone()
Overrides:
clone in class Object

getName

public String getName()

setName

public void setName(String name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()

getType1

public String getType1()

setType1

public void setType1(String type1)

unsetType1

public void unsetType1()

isSetType1

public boolean isSetType1()

getType2

public String getType2()

setType2

public void setType2(String type2)

unsetType2

public void unsetType2()

isSetType2

public boolean isSetType2()

getFieldsSize

public int getFieldsSize()

getFieldsIterator

public Iterator<FieldSchema> getFieldsIterator()

addToFields

public void addToFields(FieldSchema elem)

getFields

public List<FieldSchema> getFields()

setFields

public void setFields(List<FieldSchema> fields)

unsetFields

public void unsetFields()

isSetFields

public boolean isSetFields()

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