Interface Table.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Table.Builder,Table>,SdkBuilder<Table.Builder,Table>,SdkPojo
- Enclosing class:
- Table
public static interface Table.Builder extends SdkPojo, CopyableBuilder<Table.Builder,Table>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Table.BuildercatalogId(String catalogId)The ID of the Data Catalog in which the table resides.Table.BuildercreatedBy(String createdBy)The person or entity who created the table.Table.BuildercreateTime(Instant createTime)The time when the table definition was created in the Data Catalog.Table.BuilderdatabaseName(String databaseName)The name of the database where the table metadata resides.Table.Builderdescription(String description)A description of the table.default Table.BuilderfederatedTable(Consumer<FederatedTable.Builder> federatedTable)AFederatedTablestructure that references an entity outside the Glue Data Catalog.Table.BuilderfederatedTable(FederatedTable federatedTable)AFederatedTablestructure that references an entity outside the Glue Data Catalog.Table.BuilderisMultiDialectView(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.BuilderisRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)Indicates whether the table has been registered with Lake Formation.Table.BuilderlastAccessTime(Instant lastAccessTime)The last time that the table was accessed.Table.BuilderlastAnalyzedTime(Instant lastAnalyzedTime)The last time that column statistics were computed for this table.Table.Buildername(String name)The table name.Table.Builderowner(String owner)The owner of the table.Table.Builderparameters(Map<String,String> parameters)These key-value pairs define properties associated with the table.Table.BuilderpartitionKeys(Collection<Column> partitionKeys)A list of columns by which the table is partitioned.Table.BuilderpartitionKeys(Consumer<Column.Builder>... partitionKeys)A list of columns by which the table is partitioned.Table.BuilderpartitionKeys(Column... partitionKeys)A list of columns by which the table is partitioned.Table.Builderretention(Integer retention)The retention time for this table.default Table.Builderstatus(Consumer<TableStatus.Builder> status)Sets the value of the Status property for this object.Table.Builderstatus(TableStatus status)Sets the value of the Status property for this object.default Table.BuilderstorageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)A storage descriptor containing information about the physical storage of this table.Table.BuilderstorageDescriptor(StorageDescriptor storageDescriptor)A storage descriptor containing information about the physical storage of this table.Table.BuildertableType(String tableType)The type of this table.default Table.BuildertargetTable(Consumer<TableIdentifier.Builder> targetTable)ATableIdentifierstructure that describes a target table for resource linking.Table.BuildertargetTable(TableIdentifier targetTable)ATableIdentifierstructure that describes a target table for resource linking.Table.BuilderupdateTime(Instant updateTime)The last time that the table was updated.Table.BuilderversionId(String versionId)The ID of the table version.default Table.BuilderviewDefinition(Consumer<ViewDefinition.Builder> viewDefinition)A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.Table.BuilderviewDefinition(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.BuilderviewExpandedText(String viewExpandedText)Included for Apache Hive compatibility.Table.BuilderviewOriginalText(String viewOriginalText)Included for Apache Hive compatibility.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
Table.Builder name(String name)
The table name. For Hive compatibility, this must be entirely lowercase.
- Parameters:
name- The table name. For Hive compatibility, this must be entirely lowercase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
databaseName
Table.Builder databaseName(String databaseName)
The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.
- Parameters:
databaseName- The name of the database where the table metadata resides. For Hive compatibility, this must be all lowercase.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Table.Builder description(String description)
A description of the table.
- Parameters:
description- A description of the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
Table.Builder owner(String owner)
The owner of the table.
- Parameters:
owner- The owner of the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createTime
Table.Builder createTime(Instant createTime)
The time when the table definition was created in the Data Catalog.
- Parameters:
createTime- The time when the table definition was created in the Data Catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updateTime
Table.Builder updateTime(Instant updateTime)
The last time that the table was updated.
- Parameters:
updateTime- The last time that the table was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAccessTime
Table.Builder lastAccessTime(Instant lastAccessTime)
The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.
- Parameters:
lastAccessTime- The last time that the table was accessed. This is usually taken from HDFS, and might not be reliable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAnalyzedTime
Table.Builder lastAnalyzedTime(Instant lastAnalyzedTime)
The last time that column statistics were computed for this table.
- Parameters:
lastAnalyzedTime- The last time that column statistics were computed for this table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retention
Table.Builder retention(Integer retention)
The retention time for this table.
- Parameters:
retention- The retention time for this table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageDescriptor
Table.Builder storageDescriptor(StorageDescriptor storageDescriptor)
A storage descriptor containing information about the physical storage of this table.
- Parameters:
storageDescriptor- A storage descriptor containing information about the physical storage of this table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageDescriptor
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.Builderavoiding the need to create one manually viaStorageDescriptor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostorageDescriptor(StorageDescriptor).- Parameters:
storageDescriptor- a consumer that will call methods onStorageDescriptor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
storageDescriptor(StorageDescriptor)
-
partitionKeys
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 ofpartitionKeysto an empty list. For example:"PartitionKeys": []- Parameters:
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 ofpartitionKeysto an empty list. For example:"PartitionKeys": []- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ofpartitionKeysto an empty list. For example:"PartitionKeys": []- Parameters:
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 ofpartitionKeysto an empty list. For example:"PartitionKeys": []- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 ofpartitionKeysto an empty list. For example:
This is a convenience method that creates an instance of the"PartitionKeys": []Column.Builderavoiding the need to create one manually viaColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#partitionKeys(List.) - Parameters:
partitionKeys- a consumer that will call methods onColumn.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#partitionKeys(java.util.Collection)
-
viewOriginalText
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.- Parameters:
viewOriginalText- Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is aVIRTUAL_VIEW, certain Athena configuration encoded in base64.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewExpandedText
Table.Builder viewExpandedText(String viewExpandedText)
Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
- Parameters:
viewExpandedText- Included for Apache Hive compatibility. Not used in the normal course of Glue operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableType
Table.Builder tableType(String tableType)
The type of this table. Glue will create tables with the
EXTERNAL_TABLEtype. Other services, such as Athena, may create tables with additional table types.Glue related table types:
- EXTERNAL_TABLE
-
Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED
-
Used by Lake Formation. The Glue Data Catalog understands
GOVERNED.
- Parameters:
tableType- The type of this table. Glue will create tables with theEXTERNAL_TABLEtype. Other services, such as Athena, may create tables with additional table types.Glue related table types:
- EXTERNAL_TABLE
-
Hive compatible attribute - indicates a non-Hive managed table.
- GOVERNED
-
Used by Lake Formation. The Glue Data Catalog understands
GOVERNED.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
Table.Builder parameters(Map<String,String> parameters)
These key-value pairs define properties associated with the table.
- Parameters:
parameters- These key-value pairs define properties associated with the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Table.Builder createdBy(String createdBy)
The person or entity who created the table.
- Parameters:
createdBy- The person or entity who created the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isRegisteredWithLakeFormation
Table.Builder isRegisteredWithLakeFormation(Boolean isRegisteredWithLakeFormation)
Indicates whether the table has been registered with Lake Formation.
- Parameters:
isRegisteredWithLakeFormation- Indicates whether the table has been registered with Lake Formation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTable
Table.Builder targetTable(TableIdentifier targetTable)
A
TableIdentifierstructure that describes a target table for resource linking.- Parameters:
targetTable- ATableIdentifierstructure that describes a target table for resource linking.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetTable
default Table.Builder targetTable(Consumer<TableIdentifier.Builder> targetTable)
A
This is a convenience method that creates an instance of theTableIdentifierstructure that describes a target table for resource linking.TableIdentifier.Builderavoiding the need to create one manually viaTableIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totargetTable(TableIdentifier).- Parameters:
targetTable- a consumer that will call methods onTableIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
targetTable(TableIdentifier)
-
catalogId
Table.Builder catalogId(String catalogId)
The ID of the Data Catalog in which the table resides.
- Parameters:
catalogId- The ID of the Data Catalog in which the table resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versionId
Table.Builder versionId(String versionId)
The ID of the table version.
- Parameters:
versionId- The ID of the table version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
federatedTable
Table.Builder federatedTable(FederatedTable federatedTable)
A
FederatedTablestructure that references an entity outside the Glue Data Catalog.- Parameters:
federatedTable- AFederatedTablestructure that references an entity outside the Glue Data Catalog.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
federatedTable
default Table.Builder federatedTable(Consumer<FederatedTable.Builder> federatedTable)
A
This is a convenience method that creates an instance of theFederatedTablestructure that references an entity outside the Glue Data Catalog.FederatedTable.Builderavoiding the need to create one manually viaFederatedTable.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofederatedTable(FederatedTable).- Parameters:
federatedTable- a consumer that will call methods onFederatedTable.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
federatedTable(FederatedTable)
-
viewDefinition
Table.Builder viewDefinition(ViewDefinition viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
- Parameters:
viewDefinition- A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
viewDefinition
default Table.Builder viewDefinition(Consumer<ViewDefinition.Builder> viewDefinition)
A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.
This is a convenience method that creates an instance of theViewDefinition.Builderavoiding the need to create one manually viaViewDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toviewDefinition(ViewDefinition).- Parameters:
viewDefinition- a consumer that will call methods onViewDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
viewDefinition(ViewDefinition)
-
isMultiDialectView
Table.Builder isMultiDialectView(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.
- Parameters:
isMultiDialectView- Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Table.Builder status(TableStatus status)
Sets the value of the Status property for this object.- Parameters:
status- The new value for the Status property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default Table.Builder status(Consumer<TableStatus.Builder> status)
Sets the value of the Status property for this object. This is a convenience method that creates an instance of theTableStatus.Builderavoiding the need to create one manually viaTableStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(TableStatus).- Parameters:
status- a consumer that will call methods onTableStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(TableStatus)
-
-