Interface StorageDescriptor.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StorageDescriptor.Builder,StorageDescriptor>,SdkBuilder<StorageDescriptor.Builder,StorageDescriptor>,SdkPojo
- Enclosing class:
- StorageDescriptor
public static interface StorageDescriptor.Builder extends SdkPojo, CopyableBuilder<StorageDescriptor.Builder,StorageDescriptor>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StorageDescriptor.BuilderadditionalLocations(String... additionalLocations)A list of locations that point to the path where a Delta table is located.StorageDescriptor.BuilderadditionalLocations(Collection<String> additionalLocations)A list of locations that point to the path where a Delta table is located.StorageDescriptor.BuilderbucketColumns(String... bucketColumns)A list of reducer grouping columns, clustering columns, and bucketing columns in the table.StorageDescriptor.BuilderbucketColumns(Collection<String> bucketColumns)A list of reducer grouping columns, clustering columns, and bucketing columns in the table.StorageDescriptor.Buildercolumns(Collection<Column> columns)A list of theColumnsin the table.StorageDescriptor.Buildercolumns(Consumer<Column.Builder>... columns)A list of theColumnsin the table.StorageDescriptor.Buildercolumns(Column... columns)A list of theColumnsin the table.StorageDescriptor.Buildercompressed(Boolean compressed)Trueif the data in the table is compressed, orFalseif not.StorageDescriptor.BuilderinputFormat(String inputFormat)The input format:SequenceFileInputFormat(binary), orTextInputFormat, or a custom format.StorageDescriptor.Builderlocation(String location)The physical location of the table.StorageDescriptor.BuildernumberOfBuckets(Integer numberOfBuckets)Must be specified if the table contains any dimension columns.StorageDescriptor.BuilderoutputFormat(String outputFormat)The output format:SequenceFileOutputFormat(binary), orIgnoreKeyTextOutputFormat, or a custom format.StorageDescriptor.Builderparameters(Map<String,String> parameters)The user-supplied properties in key-value form.default StorageDescriptor.BuilderschemaReference(Consumer<SchemaReference.Builder> schemaReference)An object that references a schema stored in the Glue Schema Registry.StorageDescriptor.BuilderschemaReference(SchemaReference schemaReference)An object that references a schema stored in the Glue Schema Registry.default StorageDescriptor.BuilderserdeInfo(Consumer<SerDeInfo.Builder> serdeInfo)The serialization/deserialization (SerDe) information.StorageDescriptor.BuilderserdeInfo(SerDeInfo serdeInfo)The serialization/deserialization (SerDe) information.default StorageDescriptor.BuilderskewedInfo(Consumer<SkewedInfo.Builder> skewedInfo)The information about values that appear frequently in a column (skewed values).StorageDescriptor.BuilderskewedInfo(SkewedInfo skewedInfo)The information about values that appear frequently in a column (skewed values).StorageDescriptor.BuildersortColumns(Collection<Order> sortColumns)A list specifying the sort order of each bucket in the table.StorageDescriptor.BuildersortColumns(Consumer<Order.Builder>... sortColumns)A list specifying the sort order of each bucket in the table.StorageDescriptor.BuildersortColumns(Order... sortColumns)A list specifying the sort order of each bucket in the table.StorageDescriptor.BuilderstoredAsSubDirectories(Boolean storedAsSubDirectories)Trueif the table data is stored in subdirectories, orFalseif not.-
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
-
columns
StorageDescriptor.Builder columns(Collection<Column> columns)
A list of the
Columnsin the table.- Parameters:
columns- A list of theColumnsin the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
StorageDescriptor.Builder columns(Column... columns)
A list of the
Columnsin the table.- Parameters:
columns- A list of theColumnsin the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
columns
StorageDescriptor.Builder columns(Consumer<Column.Builder>... columns)
A list of the
This is a convenience method that creates an instance of theColumnsin the table.Column.Builderavoiding the need to create one manually viaColumn.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#columns(List.) - Parameters:
columns- 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:
#columns(java.util.Collection)
-
location
StorageDescriptor.Builder location(String location)
The physical location of the table. By default, this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.
- Parameters:
location- The physical location of the table. By default, this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalLocations
StorageDescriptor.Builder additionalLocations(Collection<String> additionalLocations)
A list of locations that point to the path where a Delta table is located.
- Parameters:
additionalLocations- A list of locations that point to the path where a Delta table is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalLocations
StorageDescriptor.Builder additionalLocations(String... additionalLocations)
A list of locations that point to the path where a Delta table is located.
- Parameters:
additionalLocations- A list of locations that point to the path where a Delta table is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputFormat
StorageDescriptor.Builder inputFormat(String inputFormat)
The input format:
SequenceFileInputFormat(binary), orTextInputFormat, or a custom format.- Parameters:
inputFormat- The input format:SequenceFileInputFormat(binary), orTextInputFormat, or a custom format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputFormat
StorageDescriptor.Builder outputFormat(String outputFormat)
The output format:
SequenceFileOutputFormat(binary), orIgnoreKeyTextOutputFormat, or a custom format.- Parameters:
outputFormat- The output format:SequenceFileOutputFormat(binary), orIgnoreKeyTextOutputFormat, or a custom format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compressed
StorageDescriptor.Builder compressed(Boolean compressed)
Trueif the data in the table is compressed, orFalseif not.- Parameters:
compressed-Trueif the data in the table is compressed, orFalseif not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberOfBuckets
StorageDescriptor.Builder numberOfBuckets(Integer numberOfBuckets)
Must be specified if the table contains any dimension columns.
- Parameters:
numberOfBuckets- Must be specified if the table contains any dimension columns.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serdeInfo
StorageDescriptor.Builder serdeInfo(SerDeInfo serdeInfo)
The serialization/deserialization (SerDe) information.
- Parameters:
serdeInfo- The serialization/deserialization (SerDe) information.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serdeInfo
default StorageDescriptor.Builder serdeInfo(Consumer<SerDeInfo.Builder> serdeInfo)
The serialization/deserialization (SerDe) information.
This is a convenience method that creates an instance of theSerDeInfo.Builderavoiding the need to create one manually viaSerDeInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserdeInfo(SerDeInfo).- Parameters:
serdeInfo- a consumer that will call methods onSerDeInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
serdeInfo(SerDeInfo)
-
bucketColumns
StorageDescriptor.Builder bucketColumns(Collection<String> bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
- Parameters:
bucketColumns- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bucketColumns
StorageDescriptor.Builder bucketColumns(String... bucketColumns)
A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
- Parameters:
bucketColumns- A list of reducer grouping columns, clustering columns, and bucketing columns in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortColumns
StorageDescriptor.Builder sortColumns(Collection<Order> sortColumns)
A list specifying the sort order of each bucket in the table.
- Parameters:
sortColumns- A list specifying the sort order of each bucket in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortColumns
StorageDescriptor.Builder sortColumns(Order... sortColumns)
A list specifying the sort order of each bucket in the table.
- Parameters:
sortColumns- A list specifying the sort order of each bucket in the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortColumns
StorageDescriptor.Builder sortColumns(Consumer<Order.Builder>... sortColumns)
A list specifying the sort order of each bucket in the table.
This is a convenience method that creates an instance of theOrder.Builderavoiding the need to create one manually viaOrder.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sortColumns(List.) - Parameters:
sortColumns- a consumer that will call methods onOrder.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sortColumns(java.util.Collection)
-
parameters
StorageDescriptor.Builder parameters(Map<String,String> parameters)
The user-supplied properties in key-value form.
- Parameters:
parameters- The user-supplied properties in key-value form.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skewedInfo
StorageDescriptor.Builder skewedInfo(SkewedInfo skewedInfo)
The information about values that appear frequently in a column (skewed values).
- Parameters:
skewedInfo- The information about values that appear frequently in a column (skewed values).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
skewedInfo
default StorageDescriptor.Builder skewedInfo(Consumer<SkewedInfo.Builder> skewedInfo)
The information about values that appear frequently in a column (skewed values).
This is a convenience method that creates an instance of theSkewedInfo.Builderavoiding the need to create one manually viaSkewedInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toskewedInfo(SkewedInfo).- Parameters:
skewedInfo- a consumer that will call methods onSkewedInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
skewedInfo(SkewedInfo)
-
storedAsSubDirectories
StorageDescriptor.Builder storedAsSubDirectories(Boolean storedAsSubDirectories)
Trueif the table data is stored in subdirectories, orFalseif not.- Parameters:
storedAsSubDirectories-Trueif the table data is stored in subdirectories, orFalseif not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaReference
StorageDescriptor.Builder schemaReference(SchemaReference schemaReference)
An object that references a schema stored in the Glue Schema Registry.
When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference.
- Parameters:
schemaReference- An object that references a schema stored in the Glue Schema Registry.When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schemaReference
default StorageDescriptor.Builder schemaReference(Consumer<SchemaReference.Builder> schemaReference)
An object that references a schema stored in the Glue Schema Registry.
When creating a table, you can pass an empty list of columns for the schema, and instead use a schema reference.
This is a convenience method that creates an instance of theSchemaReference.Builderavoiding the need to create one manually viaSchemaReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschemaReference(SchemaReference).- Parameters:
schemaReference- a consumer that will call methods onSchemaReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
schemaReference(SchemaReference)
-
-