public static interface Table.Builder extends SdkPojo, CopyableBuilder<Table.Builder,Table>
| Modifier and Type | Method and Description |
|---|---|
Table.Builder |
catalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
|
Table.Builder |
createdBy(String createdBy)
The person or entity who created the table.
|
Table.Builder |
createTime(Instant createTime)
The time when the table definition was created in the Data Catalog.
|
Table.Builder |
databaseName(String databaseName)
The name of the database where the table metadata resides.
|
Table.Builder |
description(String description)
A description of the table.
|
default Table.Builder |
federatedTable(Consumer<FederatedTable.Builder> federatedTable)
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
Table.Builder |
federatedTable(FederatedTable federatedTable)
A
FederatedTable structure that references an entity outside the Glue Data Catalog. |
Table.Builder |
isRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with Lake Formation.
|
Table.Builder |
lastAccessTime(Instant lastAccessTime)
The last time that the table was accessed.
|
Table.Builder |
lastAnalyzedTime(Instant lastAnalyzedTime)
The last time that column statistics were computed for this table.
|
Table.Builder |
name(String name)
The table name.
|
Table.Builder |
owner(String owner)
The owner of the table.
|
Table.Builder |
parameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
|
Table.Builder |
partitionKeys(Collection<Column> partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
partitionKeys(Column... partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
partitionKeys(Consumer<Column.Builder>... partitionKeys)
A list of columns by which the table is partitioned.
|
Table.Builder |
retention(Integer retention)
The retention time for this table.
|
default Table.Builder |
storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
Table.Builder |
storageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
|
Table.Builder |
tableType(String tableType)
The type of this table.
|
default Table.Builder |
targetTable(Consumer<TableIdentifier.Builder> targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
Table.Builder |
targetTable(TableIdentifier targetTable)
A
TableIdentifier structure that describes a target table for resource linking. |
Table.Builder |
updateTime(Instant updateTime)
The last time that the table was updated.
|
Table.Builder |
versionId(String versionId)
The ID of the table version.
|
Table.Builder |
viewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility.
|
Table.Builder |
viewOriginalText(String viewOriginalText)
Included for Apache Hive compatibility.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTable.Builder name(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.Table.Builder databaseName(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.Table.Builder description(String description)
A description of the table.
description - A description of the table.Table.Builder owner(String owner)
The owner of the table.
owner - The owner of the table.Table.Builder createTime(Instant 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.Table.Builder updateTime(Instant updateTime)
The last time that the table was updated.
updateTime - The last time that the table was updated.Table.Builder lastAccessTime(Instant 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.Table.Builder lastAnalyzedTime(Instant lastAnalyzedTime)
The last time that column statistics were computed for this table.
lastAnalyzedTime - The last time that column statistics were computed for this table.Table.Builder retention(Integer retention)
The retention time for this table.
retention - The retention time for this table.Table.Builder storageDescriptor(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.default Table.Builder storageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
This is a convenience method that creates an instance of theStorageDescriptor.Builder avoiding the
need to create one manually via StorageDescriptor.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to storageDescriptor(StorageDescriptor).
storageDescriptor - a consumer that will call methods on StorageDescriptor.BuilderstorageDescriptor(StorageDescriptor)Table.Builder partitionKeys(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": []
Table.Builder partitionKeys(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": []
Table.Builder partitionKeys(Consumer<Column.Builder>... 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": []
Column.Builder avoiding the need to create one manually
via Column.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #partitionKeys(List.
partitionKeys - a consumer that will call methods on Column.Builder#partitionKeys(java.util.Collection) Table.Builder viewOriginalText(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.Table.Builder viewExpandedText(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.Table.Builder tableType(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.
Table.Builder parameters(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.Table.Builder createdBy(String createdBy)
The person or entity who created the table.
createdBy - The person or entity who created the table.Table.Builder isRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with Lake Formation.
isRegisteredWithLakeFormation - Indicates whether the table has been registered with Lake Formation.Table.Builder targetTable(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.default Table.Builder targetTable(Consumer<TableIdentifier.Builder> targetTable)
A TableIdentifier structure that describes a target table for resource linking.
TableIdentifier.Builder avoiding the
need to create one manually via TableIdentifier.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to targetTable(TableIdentifier).
targetTable - a consumer that will call methods on TableIdentifier.BuildertargetTable(TableIdentifier)Table.Builder catalogId(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.Table.Builder versionId(String versionId)
The ID of the table version.
versionId - The ID of the table version.Table.Builder federatedTable(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.default Table.Builder federatedTable(Consumer<FederatedTable.Builder> federatedTable)
A FederatedTable structure that references an entity outside the Glue Data Catalog.
FederatedTable.Builder avoiding the need
to create one manually via FederatedTable.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to federatedTable(FederatedTable).
federatedTable - a consumer that will call methods on FederatedTable.BuilderfederatedTable(FederatedTable)Copyright © 2023. All rights reserved.