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

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

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

See Also:
Serialized Form

Field Summary
static int CREATETIME
           
static int DBNAME
           
static int LASTACCESSTIME
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int OWNER
           
static int PARAMETERS
           
static int PARTITIONKEYS
           
static int RETENTION
           
static int SD
           
static int TABLENAME
           
static int TABLETYPE
           
static int VIEWEXPANDEDTEXT
           
static int VIEWORIGINALTEXT
           
 
Constructor Summary
Table()
           
Table(String tableName, String dbName, String owner, int createTime, int lastAccessTime, int retention, StorageDescriptor sd, List<FieldSchema> partitionKeys, Map<String,String> parameters, String viewOriginalText, String viewExpandedText, String tableType)
           
Table(Table other)
          Performs a deep copy on other.
 
Method Summary
 void addToPartitionKeys(FieldSchema elem)
           
 Table clone()
           
 boolean equals(Object that)
           
 boolean equals(Table that)
           
 int getCreateTime()
           
 String getDbName()
           
 Object getFieldValue(int fieldID)
           
 int getLastAccessTime()
           
 String getOwner()
           
 Map<String,String> getParameters()
           
 int getParametersSize()
           
 List<FieldSchema> getPartitionKeys()
           
 Iterator<FieldSchema> getPartitionKeysIterator()
           
 int getPartitionKeysSize()
           
 int getRetention()
           
 StorageDescriptor getSd()
           
 String getTableName()
           
 String getTableType()
           
 String getViewExpandedText()
           
 String getViewOriginalText()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSetCreateTime()
           
 boolean isSetDbName()
           
 boolean isSetLastAccessTime()
           
 boolean isSetOwner()
           
 boolean isSetParameters()
           
 boolean isSetPartitionKeys()
           
 boolean isSetRetention()
           
 boolean isSetSd()
           
 boolean isSetTableName()
           
 boolean isSetTableType()
           
 boolean isSetViewExpandedText()
           
 boolean isSetViewOriginalText()
           
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setCreateTime(int createTime)
           
 void setDbName(String dbName)
           
 void setFieldValue(int fieldID, Object value)
           
 void setLastAccessTime(int lastAccessTime)
           
 void setOwner(String owner)
           
 void setParameters(Map<String,String> parameters)
           
 void setPartitionKeys(List<FieldSchema> partitionKeys)
           
 void setRetention(int retention)
           
 void setSd(StorageDescriptor sd)
           
 void setTableName(String tableName)
           
 void setTableType(String tableType)
           
 void setViewExpandedText(String viewExpandedText)
           
 void setViewOriginalText(String viewOriginalText)
           
 String toString()
           
 void unsetCreateTime()
           
 void unsetDbName()
           
 void unsetLastAccessTime()
           
 void unsetOwner()
           
 void unsetParameters()
           
 void unsetPartitionKeys()
           
 void unsetRetention()
           
 void unsetSd()
           
 void unsetTableName()
           
 void unsetTableType()
           
 void unsetViewExpandedText()
           
 void unsetViewOriginalText()
           
 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

TABLENAME

public static final int TABLENAME
See Also:
Constant Field Values

DBNAME

public static final int DBNAME
See Also:
Constant Field Values

OWNER

public static final int OWNER
See Also:
Constant Field Values

CREATETIME

public static final int CREATETIME
See Also:
Constant Field Values

LASTACCESSTIME

public static final int LASTACCESSTIME
See Also:
Constant Field Values

RETENTION

public static final int RETENTION
See Also:
Constant Field Values

SD

public static final int SD
See Also:
Constant Field Values

PARTITIONKEYS

public static final int PARTITIONKEYS
See Also:
Constant Field Values

PARAMETERS

public static final int PARAMETERS
See Also:
Constant Field Values

VIEWORIGINALTEXT

public static final int VIEWORIGINALTEXT
See Also:
Constant Field Values

VIEWEXPANDEDTEXT

public static final int VIEWEXPANDEDTEXT
See Also:
Constant Field Values

TABLETYPE

public static final int TABLETYPE
See Also:
Constant Field Values

metaDataMap

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

Table

public Table()

Table

public Table(String tableName,
             String dbName,
             String owner,
             int createTime,
             int lastAccessTime,
             int retention,
             StorageDescriptor sd,
             List<FieldSchema> partitionKeys,
             Map<String,String> parameters,
             String viewOriginalText,
             String viewExpandedText,
             String tableType)

Table

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

Method Detail

clone

public Table clone()
Overrides:
clone in class Object

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

unsetTableName

public void unsetTableName()

isSetTableName

public boolean isSetTableName()

getDbName

public String getDbName()

setDbName

public void setDbName(String dbName)

unsetDbName

public void unsetDbName()

isSetDbName

public boolean isSetDbName()

getOwner

public String getOwner()

setOwner

public void setOwner(String owner)

unsetOwner

public void unsetOwner()

isSetOwner

public boolean isSetOwner()

getCreateTime

public int getCreateTime()

setCreateTime

public void setCreateTime(int createTime)

unsetCreateTime

public void unsetCreateTime()

isSetCreateTime

public boolean isSetCreateTime()

getLastAccessTime

public int getLastAccessTime()

setLastAccessTime

public void setLastAccessTime(int lastAccessTime)

unsetLastAccessTime

public void unsetLastAccessTime()

isSetLastAccessTime

public boolean isSetLastAccessTime()

getRetention

public int getRetention()

setRetention

public void setRetention(int retention)

unsetRetention

public void unsetRetention()

isSetRetention

public boolean isSetRetention()

getSd

public StorageDescriptor getSd()

setSd

public void setSd(StorageDescriptor sd)

unsetSd

public void unsetSd()

isSetSd

public boolean isSetSd()

getPartitionKeysSize

public int getPartitionKeysSize()

getPartitionKeysIterator

public Iterator<FieldSchema> getPartitionKeysIterator()

addToPartitionKeys

public void addToPartitionKeys(FieldSchema elem)

getPartitionKeys

public List<FieldSchema> getPartitionKeys()

setPartitionKeys

public void setPartitionKeys(List<FieldSchema> partitionKeys)

unsetPartitionKeys

public void unsetPartitionKeys()

isSetPartitionKeys

public boolean isSetPartitionKeys()

getParametersSize

public int getParametersSize()

putToParameters

public void putToParameters(String key,
                            String val)

getParameters

public Map<String,String> getParameters()

setParameters

public void setParameters(Map<String,String> parameters)

unsetParameters

public void unsetParameters()

isSetParameters

public boolean isSetParameters()

getViewOriginalText

public String getViewOriginalText()

setViewOriginalText

public void setViewOriginalText(String viewOriginalText)

unsetViewOriginalText

public void unsetViewOriginalText()

isSetViewOriginalText

public boolean isSetViewOriginalText()

getViewExpandedText

public String getViewExpandedText()

setViewExpandedText

public void setViewExpandedText(String viewExpandedText)

unsetViewExpandedText

public void unsetViewExpandedText()

isSetViewExpandedText

public boolean isSetViewExpandedText()

getTableType

public String getTableType()

setTableType

public void setTableType(String tableType)

unsetTableType

public void unsetTableType()

isSetTableType

public boolean isSetTableType()

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