Interface TableInput.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TableInput.Builder,TableInput>,SdkBuilder<TableInput.Builder,TableInput>,SdkPojo
- Enclosing class:
- TableInput
public static interface TableInput.Builder extends SdkPojo, CopyableBuilder<TableInput.Builder,TableInput>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TableInput.Builderdescription(String description)A description of the table.TableInput.BuilderlastAccessTime(Instant lastAccessTime)The last time that the table was accessed.TableInput.BuilderlastAnalyzedTime(Instant lastAnalyzedTime)The last time that column statistics were computed for this table.TableInput.Buildername(String name)The table name.TableInput.Builderowner(String owner)The table owner.TableInput.Builderparameters(Map<String,String> parameters)These key-value pairs define properties associated with the table.TableInput.BuilderpartitionKeys(Collection<Column> partitionKeys)A list of columns by which the table is partitioned.TableInput.BuilderpartitionKeys(Consumer<Column.Builder>... partitionKeys)A list of columns by which the table is partitioned.TableInput.BuilderpartitionKeys(Column... partitionKeys)A list of columns by which the table is partitioned.TableInput.Builderretention(Integer retention)The retention time for this table.default TableInput.BuilderstorageDescriptor(Consumer<StorageDescriptor.Builder> storageDescriptor)A storage descriptor containing information about the physical storage of this table.TableInput.BuilderstorageDescriptor(StorageDescriptor storageDescriptor)A storage descriptor containing information about the physical storage of this table.TableInput.BuildertableType(String tableType)The type of this table.default TableInput.BuildertargetTable(Consumer<TableIdentifier.Builder> targetTable)ATableIdentifierstructure that describes a target table for resource linking.TableInput.BuildertargetTable(TableIdentifier targetTable)ATableIdentifierstructure that describes a target table for resource linking.default TableInput.BuilderviewDefinition(Consumer<ViewDefinitionInput.Builder> viewDefinition)A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.TableInput.BuilderviewDefinition(ViewDefinitionInput viewDefinition)A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.TableInput.BuilderviewExpandedText(String viewExpandedText)Included for Apache Hive compatibility.TableInput.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
TableInput.Builder name(String name)
The table name. For Hive compatibility, this is folded to lowercase when it is stored.
- Parameters:
name- The table name. For Hive compatibility, this is folded to lowercase when it is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
TableInput.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
TableInput.Builder owner(String owner)
The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations.
- Parameters:
owner- The table owner. 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.
-
lastAccessTime
TableInput.Builder lastAccessTime(Instant lastAccessTime)
The last time that the table was accessed.
- Parameters:
lastAccessTime- The last time that the table was accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastAnalyzedTime
TableInput.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
TableInput.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
TableInput.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 TableInput.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
TableInput.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
TableInput.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
TableInput.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
TableInput.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
TableInput.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
TableInput.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
TableInput.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.
-
targetTable
TableInput.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 TableInput.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)
-
viewDefinition
TableInput.Builder viewDefinition(ViewDefinitionInput 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 TableInput.Builder viewDefinition(Consumer<ViewDefinitionInput.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 theViewDefinitionInput.Builderavoiding the need to create one manually viaViewDefinitionInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toviewDefinition(ViewDefinitionInput).- Parameters:
viewDefinition- a consumer that will call methods onViewDefinitionInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
viewDefinition(ViewDefinitionInput)
-
-