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

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

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

See Also:
Serialized Form

Field Summary
static int COMMENT
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int NAME
           
static int TYPE
           
 
Constructor Summary
FieldSchema()
           
FieldSchema(FieldSchema other)
          Performs a deep copy on other.
FieldSchema(String name, String type, String comment)
           
 
Method Summary
 FieldSchema clone()
           
 boolean equals(FieldSchema that)
           
 boolean equals(Object that)
           
 String getComment()
           
 Object getFieldValue(int fieldID)
           
 String getName()
           
 String getType()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetComment()
           
 boolean isSetName()
           
 boolean isSetType()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setComment(String comment)
           
 void setFieldValue(int fieldID, Object value)
           
 void setName(String name)
           
 void setType(String type)
           
 String toString()
           
 void unsetComment()
           
 void unsetName()
           
 void unsetType()
           
 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

TYPE

public static final int TYPE
See Also:
Constant Field Values

COMMENT

public static final int COMMENT
See Also:
Constant Field Values

metaDataMap

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

FieldSchema

public FieldSchema()

FieldSchema

public FieldSchema(String name,
                   String type,
                   String comment)

FieldSchema

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

Method Detail

clone

public FieldSchema clone()
Overrides:
clone in class Object

getName

public String getName()

setName

public void setName(String name)

unsetName

public void unsetName()

isSetName

public boolean isSetName()

getType

public String getType()

setType

public void setType(String type)

unsetType

public void unsetType()

isSetType

public boolean isSetType()

getComment

public String getComment()

setComment

public void setComment(String comment)

unsetComment

public void unsetComment()

isSetComment

public boolean isSetComment()

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(FieldSchema 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 © 2010 The Apache Software Foundation