@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Table extends Object implements Serializable, Cloneable, StructuredPojo
Represents a collection of related data organized in columns and rows.
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
Table |
addParametersEntry(String key,
String value) |
Table |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Table |
clone() |
boolean |
equals(Object obj) |
String |
getCreatedBy()
Person or entity who created the table.
|
Date |
getCreateTime()
Time when the table definition was created in the Data Catalog.
|
String |
getDatabaseName()
Name of the metadata database where the table metadata resides.
|
String |
getDescription()
Description of the table.
|
Date |
getLastAccessTime()
Last time the table was accessed.
|
Date |
getLastAnalyzedTime()
Last time column statistics were computed for this table.
|
String |
getName()
Name of the table.
|
String |
getOwner()
Owner of the table.
|
Map<String,String> |
getParameters()
Properties associated with this table, as a list of key-value pairs.
|
List<Column> |
getPartitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
getRetention()
Retention time for this table.
|
StorageDescriptor |
getStorageDescriptor()
A storage descriptor containing information about the physical storage of this table.
|
String |
getTableType()
The type of this table (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
Date |
getUpdateTime()
Last time the table was updated.
|
String |
getViewExpandedText()
If the table is a view, the expanded text of the view; otherwise
null . |
String |
getViewOriginalText()
If the table is a view, the original text of the view; otherwise
null . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedBy(String createdBy)
Person or entity who created the table.
|
void |
setCreateTime(Date createTime)
Time when the table definition was created in the Data Catalog.
|
void |
setDatabaseName(String databaseName)
Name of the metadata database where the table metadata resides.
|
void |
setDescription(String description)
Description of the table.
|
void |
setLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
|
void |
setLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
|
void |
setName(String name)
Name of the table.
|
void |
setOwner(String owner)
Owner of the table.
|
void |
setParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
|
void |
setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
void |
setRetention(Integer retention)
Retention time for this table.
|
void |
setStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
void |
setTableType(String tableType)
The type of this table (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
void |
setUpdateTime(Date updateTime)
Last time the table was updated.
|
void |
setViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
void |
setViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Table |
withCreatedBy(String createdBy)
Person or entity who created the table.
|
Table |
withCreateTime(Date createTime)
Time when the table definition was created in the Data Catalog.
|
Table |
withDatabaseName(String databaseName)
Name of the metadata database where the table metadata resides.
|
Table |
withDescription(String description)
Description of the table.
|
Table |
withLastAccessTime(Date lastAccessTime)
Last time the table was accessed.
|
Table |
withLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
|
Table |
withName(String name)
Name of the table.
|
Table |
withOwner(String owner)
Owner of the table.
|
Table |
withParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
|
Table |
withPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
Table |
withPartitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned.
|
Table |
withRetention(Integer retention)
Retention time for this table.
|
Table |
withStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
Table |
withTableType(String tableType)
The type of this table (
EXTERNAL_TABLE , VIRTUAL_VIEW , etc.). |
Table |
withUpdateTime(Date updateTime)
Last time the table was updated.
|
Table |
withViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise
null . |
Table |
withViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise
null . |
public void setName(String name)
Name of the table.
name
- Name of the table.public String getName()
Name of the table.
public Table withName(String name)
Name of the table.
name
- Name of the table.public void setDatabaseName(String databaseName)
Name of the metadata database where the table metadata resides.
databaseName
- Name of the metadata database where the table metadata resides.public String getDatabaseName()
Name of the metadata database where the table metadata resides.
public Table withDatabaseName(String databaseName)
Name of the metadata database where the table metadata resides.
databaseName
- Name of the metadata database where the table metadata resides.public void setDescription(String description)
Description of the table.
description
- Description of the table.public String getDescription()
Description of the table.
public Table withDescription(String description)
Description of the table.
description
- Description of the table.public void setOwner(String owner)
Owner of the table.
owner
- Owner of the table.public String getOwner()
Owner of the table.
public Table withOwner(String owner)
Owner of the table.
owner
- Owner of the table.public void setCreateTime(Date createTime)
Time when the table definition was created in the Data Catalog.
createTime
- Time when the table definition was created in the Data Catalog.public Date getCreateTime()
Time when the table definition was created in the Data Catalog.
public Table withCreateTime(Date createTime)
Time when the table definition was created in the Data Catalog.
createTime
- Time when the table definition was created in the Data Catalog.public void setUpdateTime(Date updateTime)
Last time the table was updated.
updateTime
- Last time the table was updated.public Date getUpdateTime()
Last time the table was updated.
public Table withUpdateTime(Date updateTime)
Last time the table was updated.
updateTime
- Last time the table was updated.public void setLastAccessTime(Date lastAccessTime)
Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.
lastAccessTime
- Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.public Date getLastAccessTime()
Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.
public Table withLastAccessTime(Date lastAccessTime)
Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.
lastAccessTime
- Last time the table was accessed. This is usually taken from HDFS, and may not be reliable.public void setLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.public Date getLastAnalyzedTime()
Last time column statistics were computed for this table.
public Table withLastAnalyzedTime(Date lastAnalyzedTime)
Last time column statistics were computed for this table.
lastAnalyzedTime
- Last time column statistics were computed for this table.public void setRetention(Integer retention)
Retention time for this table.
retention
- Retention time for this table.public Integer getRetention()
Retention time for this table.
public Table withRetention(Integer retention)
Retention time for this table.
retention
- Retention time for this table.public void setStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.public StorageDescriptor getStorageDescriptor()
A storage descriptor containing information about the physical storage of this table.
public Table withStorageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
storageDescriptor
- A storage descriptor containing information about the physical storage of this table.public List<Column> getPartitionKeys()
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
public void setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.public Table withPartitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
NOTE: This method appends the values to the existing list (if any). Use
setPartitionKeys(java.util.Collection)
or withPartitionKeys(java.util.Collection)
if you want
to override the existing values.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.public Table withPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.public void setViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise null
.
viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.public String getViewOriginalText()
If the table is a view, the original text of the view; otherwise null
.
null
.public Table withViewOriginalText(String viewOriginalText)
If the table is a view, the original text of the view; otherwise null
.
viewOriginalText
- If the table is a view, the original text of the view; otherwise null
.public void setViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise null
.
viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.public String getViewExpandedText()
If the table is a view, the expanded text of the view; otherwise null
.
null
.public Table withViewExpandedText(String viewExpandedText)
If the table is a view, the expanded text of the view; otherwise null
.
viewExpandedText
- If the table is a view, the expanded text of the view; otherwise null
.public void setTableType(String tableType)
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).public String getTableType()
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).public Table withTableType(String tableType)
The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).
tableType
- The type of this table (EXTERNAL_TABLE
, VIRTUAL_VIEW
, etc.).public Map<String,String> getParameters()
Properties associated with this table, as a list of key-value pairs.
public void setParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
parameters
- Properties associated with this table, as a list of key-value pairs.public Table withParameters(Map<String,String> parameters)
Properties associated with this table, as a list of key-value pairs.
parameters
- Properties associated with this table, as a list of key-value pairs.public Table clearParametersEntries()
public void setCreatedBy(String createdBy)
Person or entity who created the table.
createdBy
- Person or entity who created the table.public String getCreatedBy()
Person or entity who created the table.
public Table withCreatedBy(String createdBy)
Person or entity who created the table.
createdBy
- Person or entity who created the table.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.