@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)
Add a single Parameters entry
|
Table |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Table |
clone() |
boolean |
equals(Object obj) |
String |
getCatalogId()
The ID of the Data Catalog in which the table resides.
|
String |
getCreatedBy()
The person or entity who created the table.
|
Date |
getCreateTime()
The time when the table definition was created in the Data Catalog.
|
String |
getDatabaseName()
The name of the database where the table metadata resides.
|
String |
getDescription()
A description of the table.
|
Boolean |
getIsRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS Lake Formation.
|
Date |
getLastAccessTime()
The last time that the table was accessed.
|
Date |
getLastAnalyzedTime()
The last time that column statistics were computed for this table.
|
String |
getName()
The table name.
|
String |
getOwner()
The owner of the table.
|
Map<String,String> |
getParameters()
These key-value pairs define properties associated with the table.
|
List<Column> |
getPartitionKeys()
A list of columns by which the table is partitioned.
|
Integer |
getRetention()
The 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.). |
TableIdentifier |
getTargetTable()
A
TableIdentifier structure that describes a target table for resource linking. |
Date |
getUpdateTime()
The last time that 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() |
Boolean |
isRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS Lake Formation.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCatalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
|
void |
setCreatedBy(String createdBy)
The person or entity who created the table.
|
void |
setCreateTime(Date createTime)
The time when the table definition was created in the Data Catalog.
|
void |
setDatabaseName(String databaseName)
The name of the database where the table metadata resides.
|
void |
setDescription(String description)
A description of the table.
|
void |
setIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with AWS Lake Formation.
|
void |
setLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
|
void |
setLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
|
void |
setName(String name)
The table name.
|
void |
setOwner(String owner)
The owner of the table.
|
void |
setParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
void |
setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
void |
setRetention(Integer retention)
The 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 |
setTargetTable(TableIdentifier targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
void |
setUpdateTime(Date updateTime)
The last time that 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.
|
Table |
withCatalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
|
Table |
withCreatedBy(String createdBy)
The person or entity who created the table.
|
Table |
withCreateTime(Date createTime)
The time when the table definition was created in the Data Catalog.
|
Table |
withDatabaseName(String databaseName)
The name of the database where the table metadata resides.
|
Table |
withDescription(String description)
A description of the table.
|
Table |
withIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with AWS Lake Formation.
|
Table |
withLastAccessTime(Date lastAccessTime)
The last time that the table was accessed.
|
Table |
withLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
|
Table |
withName(String name)
The table name.
|
Table |
withOwner(String owner)
The owner of the table.
|
Table |
withParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
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)
The 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 |
withTargetTable(TableIdentifier targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
Table |
withUpdateTime(Date updateTime)
The last time that 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)
The table name. For Hive compatibility, this must be entirely lowercase.
name
- The table name. For Hive compatibility, this must be entirely lowercase.public String getName()
The table name. For Hive compatibility, this must be entirely lowercase.
public Table withName(String name)
The table name. For Hive compatibility, this must be entirely lowercase.
name
- The table name. For Hive compatibility, this must be entirely lowercase.public void setDatabaseName(String databaseName)
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
databaseName
- The name of the database where the table metadata resides. For Hive compatibility, this must be all
lowercase.public String getDatabaseName()
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
public Table withDatabaseName(String databaseName)
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
databaseName
- The name of the database where the table metadata resides. For Hive compatibility, this must be all
lowercase.public void setDescription(String description)
A description of the table.
description
- A description of the table.public String getDescription()
A description of the table.
public Table withDescription(String description)
A description of the table.
description
- A description of the table.public void setOwner(String owner)
The owner of the table.
owner
- The owner of the table.public String getOwner()
The owner of the table.
public Table withOwner(String owner)
The owner of the table.
owner
- The owner of the table.public void setCreateTime(Date createTime)
The time when the table definition was created in the Data Catalog.
createTime
- The time when the table definition was created in the Data Catalog.public Date getCreateTime()
The time when the table definition was created in the Data Catalog.
public Table withCreateTime(Date createTime)
The time when the table definition was created in the Data Catalog.
createTime
- The time when the table definition was created in the Data Catalog.public void setUpdateTime(Date updateTime)
The last time that the table was updated.
updateTime
- The last time that the table was updated.public Date getUpdateTime()
The last time that the table was updated.
public Table withUpdateTime(Date updateTime)
The last time that the table was updated.
updateTime
- The last time that the table was updated.public void setLastAccessTime(Date lastAccessTime)
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
lastAccessTime
- The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.public Date getLastAccessTime()
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
public Table withLastAccessTime(Date lastAccessTime)
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
lastAccessTime
- The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.public void setLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
lastAnalyzedTime
- The last time that column statistics were computed for this table.public Date getLastAnalyzedTime()
The last time that column statistics were computed for this table.
public Table withLastAnalyzedTime(Date lastAnalyzedTime)
The last time that column statistics were computed for this table.
lastAnalyzedTime
- The last time that column statistics were computed for this table.public void setRetention(Integer retention)
The retention time for this table.
retention
- The retention time for this table.public Integer getRetention()
The retention time for this table.
public Table withRetention(Integer retention)
The retention time for this table.
retention
- The 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.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at
least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you
must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
public void setPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at
least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition
keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you
must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
public Table withPartitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at
least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
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.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you
must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
public Table withPartitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned. Only primitive types are supported as partition keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you must at
least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
partitionKeys
- A list of columns by which the table is partitioned. Only primitive types are supported as partition
keys.
When you create a table used by Amazon Athena, and you do not specify any partitionKeys
, you
must at least set the value of partitionKeys
to an empty list. For example:
"PartitionKeys": []
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()
These key-value pairs define properties associated with the table.
public void setParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
parameters
- These key-value pairs define properties associated with the table.public Table withParameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
parameters
- These key-value pairs define properties associated with the table.public Table addParametersEntry(String key, String value)
public Table clearParametersEntries()
public void setCreatedBy(String createdBy)
The person or entity who created the table.
createdBy
- The person or entity who created the table.public String getCreatedBy()
The person or entity who created the table.
public Table withCreatedBy(String createdBy)
The person or entity who created the table.
createdBy
- The person or entity who created the table.public void setIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with AWS Lake Formation.
isRegisteredWithLakeFormation
- Indicates whether the table has been registered with AWS Lake Formation.public Boolean getIsRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS Lake Formation.
public Table withIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with AWS Lake Formation.
isRegisteredWithLakeFormation
- Indicates whether the table has been registered with AWS Lake Formation.public Boolean isRegisteredWithLakeFormation()
Indicates whether the table has been registered with AWS Lake Formation.
public void setTargetTable(TableIdentifier targetTable)
A TableIdentifier
structure that describes a target table for resource linking.
targetTable
- A TableIdentifier
structure that describes a target table for resource linking.public TableIdentifier getTargetTable()
A TableIdentifier
structure that describes a target table for resource linking.
TableIdentifier
structure that describes a target table for resource linking.public Table withTargetTable(TableIdentifier targetTable)
A TableIdentifier
structure that describes a target table for resource linking.
targetTable
- A TableIdentifier
structure that describes a target table for resource linking.public void setCatalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
catalogId
- The ID of the Data Catalog in which the table resides.public String getCatalogId()
The ID of the Data Catalog in which the table resides.
public Table withCatalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
catalogId
- The ID of the Data Catalog in which the table resides.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.