Interface CatalogSource.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CatalogSource.Builder,
,CatalogSource> SdkBuilder<CatalogSource.Builder,
,CatalogSource> SdkPojo
- Enclosing class:
CatalogSource
@Mutable
@NotThreadSafe
public static interface CatalogSource.Builder
extends SdkPojo, CopyableBuilder<CatalogSource.Builder,CatalogSource>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the database to read from.The name of the data store.outputSchemas
(Collection<GlueSchema> outputSchemas) Specifies the data schema for the catalog source.outputSchemas
(Consumer<GlueSchema.Builder>... outputSchemas) Specifies the data schema for the catalog source.outputSchemas
(GlueSchema... outputSchemas) Specifies the data schema for the catalog source.partitionPredicate
(String partitionPredicate) Partitions satisfying this predicate are deleted.The name of the table in the database to read from.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 Details
-
name
The name of the data store.
- Parameters:
name
- The name of the data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The name of the database to read from.
- Parameters:
database
- The name of the database to read from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
table
The name of the table in the database to read from.
- Parameters:
table
- The name of the table in the database to read from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
partitionPredicate
Partitions satisfying this predicate are deleted. Files within the retention period in these partitions are not deleted.
- Parameters:
partitionPredicate
- Partitions satisfying this predicate are deleted. Files within the retention period in these partitions are not deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputSchemas
Specifies the data schema for the catalog source.
- Parameters:
outputSchemas
- Specifies the data schema for the catalog source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputSchemas
Specifies the data schema for the catalog source.
- Parameters:
outputSchemas
- Specifies the data schema for the catalog source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputSchemas
Specifies the data schema for the catalog source.
This is a convenience method that creates an instance of theGlueSchema.Builder
avoiding the need to create one manually viaGlueSchema.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputSchemas(List<GlueSchema>)
.- Parameters:
outputSchemas
- a consumer that will call methods onGlueSchema.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-