org.apache.hadoop.hive.metastore.api
Class Table
java.lang.Object
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
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
metaDataMap
public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
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)
Table
public Table(Table other)
- Performs a deep copy on other.
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()
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 © 2009 The Apache Software Foundation