@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.
|
FederatedTable |
getFederatedTable()
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
Boolean |
getIsMultiDialectView()
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be
read by those engines.
|
Boolean |
getIsRegisteredWithLakeFormation()
Indicates whether the table has been registered with 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.
|
TableIdentifier |
getTargetTable()
A
TableIdentifier structure that describes a target table for resource linking. |
Date |
getUpdateTime()
The last time that the table was updated.
|
String |
getVersionId()
The ID of the table version.
|
ViewDefinition |
getViewDefinition()
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
String |
getViewExpandedText()
Included for Apache Hive compatibility.
|
String |
getViewOriginalText()
Included for Apache Hive compatibility.
|
int |
hashCode() |
Boolean |
isMultiDialectView()
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be
read by those engines.
|
Boolean |
isRegisteredWithLakeFormation()
Indicates whether the table has been registered with Lake Formation.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
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 |
setFederatedTable(FederatedTable federatedTable)
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
void |
setIsMultiDialectView(Boolean isMultiDialectView)
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be
read by those engines.
|
void |
setIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with 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.
|
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 |
setVersionId(String versionId)
The ID of the table version.
|
void |
setViewDefinition(ViewDefinition viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
void |
setViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility.
|
void |
setViewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility.
|
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 |
withFederatedTable(FederatedTable federatedTable)
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
Table |
withIsMultiDialectView(Boolean isMultiDialectView)
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be
read by those engines.
|
Table |
withIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with 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.
|
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 |
withVersionId(String versionId)
The ID of the table version.
|
Table |
withViewDefinition(ViewDefinition viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the
view, and the query.
|
Table |
withViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility.
|
Table |
withViewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility.
|
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)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a
VIRTUAL_VIEW
, certain Athena configuration encoded in base64.
viewOriginalText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is
a VIRTUAL_VIEW
, certain Athena configuration encoded in base64.public String getViewOriginalText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a
VIRTUAL_VIEW
, certain Athena configuration encoded in base64.
VIRTUAL_VIEW
, certain Athena configuration encoded in base64.public Table withViewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a
VIRTUAL_VIEW
, certain Athena configuration encoded in base64.
viewOriginalText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is
a VIRTUAL_VIEW
, certain Athena configuration encoded in base64.public void setViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
viewExpandedText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public String getViewExpandedText()
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
public Table withViewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
viewExpandedText
- Included for Apache Hive compatibility. Not used in the normal course of Glue operations.public void setTableType(String tableType)
The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services, such
as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
tableType
- The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services,
such as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
public String getTableType()
The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services, such
as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
EXTERNAL_TABLE
type. Other
services, such as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
public Table withTableType(String tableType)
The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services, such
as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
tableType
- The type of this table. Glue will create tables with the EXTERNAL_TABLE
type. Other services,
such as Athena, may create tables with additional table types.
Glue related table types:
Hive compatible attribute - indicates a non-Hive managed table.
Used by Lake Formation. The Glue Data Catalog understands GOVERNED
.
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 Lake Formation.
isRegisteredWithLakeFormation
- Indicates whether the table has been registered with Lake Formation.public Boolean getIsRegisteredWithLakeFormation()
Indicates whether the table has been registered with Lake Formation.
public Table withIsRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with Lake Formation.
isRegisteredWithLakeFormation
- Indicates whether the table has been registered with Lake Formation.public Boolean isRegisteredWithLakeFormation()
Indicates whether the table has been registered with 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 void setVersionId(String versionId)
The ID of the table version.
versionId
- The ID of the table version.public String getVersionId()
The ID of the table version.
public Table withVersionId(String versionId)
The ID of the table version.
versionId
- The ID of the table version.public void setFederatedTable(FederatedTable federatedTable)
A FederatedTable
structure that references an entity outside the Glue Data Catalog.
federatedTable
- A FederatedTable
structure that references an entity outside the Glue Data Catalog.public FederatedTable getFederatedTable()
A FederatedTable
structure that references an entity outside the Glue Data Catalog.
FederatedTable
structure that references an entity outside the Glue Data Catalog.public Table withFederatedTable(FederatedTable federatedTable)
A FederatedTable
structure that references an entity outside the Glue Data Catalog.
federatedTable
- A FederatedTable
structure that references an entity outside the Glue Data Catalog.public void setViewDefinition(ViewDefinition viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
viewDefinition
- A structure that contains all the information that defines the view, including the dialect or dialects for
the view, and the query.public ViewDefinition getViewDefinition()
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
public Table withViewDefinition(ViewDefinition viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
viewDefinition
- A structure that contains all the information that defines the view, including the dialect or dialects for
the view, and the query.public void setIsMultiDialectView(Boolean isMultiDialectView)
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.
isMultiDialectView
- Specifies whether the view supports the SQL dialects of one or more different query engines and can
therefore be read by those engines.public Boolean getIsMultiDialectView()
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.
public Table withIsMultiDialectView(Boolean isMultiDialectView)
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.
isMultiDialectView
- Specifies whether the view supports the SQL dialects of one or more different query engines and can
therefore be read by those engines.public Boolean isMultiDialectView()
Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.
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.