org.apache.hadoop.hive.metastore.api
Class Type
java.lang.Object
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
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
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.
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