public class Table extends Object implements org.apache.thrift.TBase<Table,Table._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Table._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<Table._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addToPartitionKeys(FieldSchema elem) |
void |
clear() |
int |
compareTo(Table other) |
Table |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(Table that) |
Table._Fields |
fieldForId(int fieldId) |
int |
getCreateTime() |
String |
getDbName() |
Object |
getFieldValue(Table._Fields field) |
int |
getLastAccessTime() |
String |
getOwner() |
Map<String,String> |
getParameters() |
int |
getParametersSize() |
List<FieldSchema> |
getPartitionKeys() |
Iterator<FieldSchema> |
getPartitionKeysIterator() |
int |
getPartitionKeysSize() |
PrincipalPrivilegeSet |
getPrivileges() |
int |
getRetention() |
StorageDescriptor |
getSd() |
String |
getTableName() |
String |
getTableType() |
String |
getViewExpandedText() |
String |
getViewOriginalText() |
int |
hashCode() |
boolean |
isSet(Table._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCreateTime()
Returns true if field createTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetDbName()
Returns true if field dbName is set (has been assigned a value) and false otherwise
|
boolean |
isSetLastAccessTime()
Returns true if field lastAccessTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetOwner()
Returns true if field owner is set (has been assigned a value) and false otherwise
|
boolean |
isSetParameters()
Returns true if field parameters is set (has been assigned a value) and false otherwise
|
boolean |
isSetPartitionKeys()
Returns true if field partitionKeys is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrivileges()
Returns true if field privileges is set (has been assigned a value) and false otherwise
|
boolean |
isSetRetention()
Returns true if field retention is set (has been assigned a value) and false otherwise
|
boolean |
isSetSd()
Returns true if field sd is set (has been assigned a value) and false otherwise
|
boolean |
isSetTableName()
Returns true if field tableName is set (has been assigned a value) and false otherwise
|
boolean |
isSetTableType()
Returns true if field tableType is set (has been assigned a value) and false otherwise
|
boolean |
isSetTemporary()
Returns true if field temporary is set (has been assigned a value) and false otherwise
|
boolean |
isSetViewExpandedText()
Returns true if field viewExpandedText is set (has been assigned a value) and false otherwise
|
boolean |
isSetViewOriginalText()
Returns true if field viewOriginalText is set (has been assigned a value) and false otherwise
|
boolean |
isTemporary() |
void |
putToParameters(String key,
String val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setCreateTime(int createTime) |
void |
setCreateTimeIsSet(boolean value) |
void |
setDbName(String dbName) |
void |
setDbNameIsSet(boolean value) |
void |
setFieldValue(Table._Fields field,
Object value) |
void |
setLastAccessTime(int lastAccessTime) |
void |
setLastAccessTimeIsSet(boolean value) |
void |
setOwner(String owner) |
void |
setOwnerIsSet(boolean value) |
void |
setParameters(Map<String,String> parameters) |
void |
setParametersIsSet(boolean value) |
void |
setPartitionKeys(List<FieldSchema> partitionKeys) |
void |
setPartitionKeysIsSet(boolean value) |
void |
setPrivileges(PrincipalPrivilegeSet privileges) |
void |
setPrivilegesIsSet(boolean value) |
void |
setRetention(int retention) |
void |
setRetentionIsSet(boolean value) |
void |
setSd(StorageDescriptor sd) |
void |
setSdIsSet(boolean value) |
void |
setTableName(String tableName) |
void |
setTableNameIsSet(boolean value) |
void |
setTableType(String tableType) |
void |
setTableTypeIsSet(boolean value) |
void |
setTemporary(boolean temporary) |
void |
setTemporaryIsSet(boolean value) |
void |
setViewExpandedText(String viewExpandedText) |
void |
setViewExpandedTextIsSet(boolean value) |
void |
setViewOriginalText(String viewOriginalText) |
void |
setViewOriginalTextIsSet(boolean value) |
String |
toString() |
void |
unsetCreateTime() |
void |
unsetDbName() |
void |
unsetLastAccessTime() |
void |
unsetOwner() |
void |
unsetParameters() |
void |
unsetPartitionKeys() |
void |
unsetPrivileges() |
void |
unsetRetention() |
void |
unsetSd() |
void |
unsetTableName() |
void |
unsetTableType() |
void |
unsetTemporary() |
void |
unsetViewExpandedText() |
void |
unsetViewOriginalText() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<Table._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public 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)
public Table(Table other)
public Table deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Table,Table._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Table,Table._Fields>
public String getTableName()
public void setTableName(String tableName)
public void unsetTableName()
public boolean isSetTableName()
public void setTableNameIsSet(boolean value)
public String getDbName()
public void setDbName(String dbName)
public void unsetDbName()
public boolean isSetDbName()
public void setDbNameIsSet(boolean value)
public String getOwner()
public void setOwner(String owner)
public void unsetOwner()
public boolean isSetOwner()
public void setOwnerIsSet(boolean value)
public int getCreateTime()
public void setCreateTime(int createTime)
public void unsetCreateTime()
public boolean isSetCreateTime()
public void setCreateTimeIsSet(boolean value)
public int getLastAccessTime()
public void setLastAccessTime(int lastAccessTime)
public void unsetLastAccessTime()
public boolean isSetLastAccessTime()
public void setLastAccessTimeIsSet(boolean value)
public int getRetention()
public void setRetention(int retention)
public void unsetRetention()
public boolean isSetRetention()
public void setRetentionIsSet(boolean value)
public StorageDescriptor getSd()
public void setSd(StorageDescriptor sd)
public void unsetSd()
public boolean isSetSd()
public void setSdIsSet(boolean value)
public int getPartitionKeysSize()
public Iterator<FieldSchema> getPartitionKeysIterator()
public void addToPartitionKeys(FieldSchema elem)
public List<FieldSchema> getPartitionKeys()
public void setPartitionKeys(List<FieldSchema> partitionKeys)
public void unsetPartitionKeys()
public boolean isSetPartitionKeys()
public void setPartitionKeysIsSet(boolean value)
public int getParametersSize()
public void unsetParameters()
public boolean isSetParameters()
public void setParametersIsSet(boolean value)
public String getViewOriginalText()
public void setViewOriginalText(String viewOriginalText)
public void unsetViewOriginalText()
public boolean isSetViewOriginalText()
public void setViewOriginalTextIsSet(boolean value)
public String getViewExpandedText()
public void setViewExpandedText(String viewExpandedText)
public void unsetViewExpandedText()
public boolean isSetViewExpandedText()
public void setViewExpandedTextIsSet(boolean value)
public String getTableType()
public void setTableType(String tableType)
public void unsetTableType()
public boolean isSetTableType()
public void setTableTypeIsSet(boolean value)
public PrincipalPrivilegeSet getPrivileges()
public void setPrivileges(PrincipalPrivilegeSet privileges)
public void unsetPrivileges()
public boolean isSetPrivileges()
public void setPrivilegesIsSet(boolean value)
public boolean isTemporary()
public void setTemporary(boolean temporary)
public void unsetTemporary()
public boolean isSetTemporary()
public void setTemporaryIsSet(boolean value)
public void setFieldValue(Table._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Table,Table._Fields>
public Object getFieldValue(Table._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Table,Table._Fields>
public boolean isSet(Table._Fields field)
isSet
in interface org.apache.thrift.TBase<Table,Table._Fields>
public boolean equals(Table that)
public int compareTo(Table other)
compareTo
in interface Comparable<Table>
public Table._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Table,Table._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Table,Table._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<Table,Table._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.