Interface PartitionSpec.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PartitionSpec.Builder,,PartitionSpec> SdkBuilder<PartitionSpec.Builder,,PartitionSpec> SdkPojo
- Enclosing class:
PartitionSpec
@Mutable
@NotThreadSafe
public static interface PartitionSpec.Builder
extends SdkPojo, CopyableBuilder<PartitionSpec.Builder,PartitionSpec>
-
Method Summary
Modifier and TypeMethodDescriptionpartitionStrategy(String partitionStrategy) The partitioning strategy applied to records written to the table.partitionStrategy(PartitionStrategy partitionStrategy) The partitioning strategy applied to records written to the table.sourceList(Collection<PartitionSource> sourceList) The source columns used by the partitioning strategy.sourceList(Consumer<PartitionSource.Builder>... sourceList) The source columns used by the partitioning strategy.sourceList(PartitionSource... sourceList) The source columns used by the partitioning strategy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
partitionStrategy
The partitioning strategy applied to records written to the table.
- Parameters:
partitionStrategy- The partitioning strategy applied to records written to the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
partitionStrategy
The partitioning strategy applied to records written to the table.
- Parameters:
partitionStrategy- The partitioning strategy applied to records written to the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceList
The source columns used by the partitioning strategy. For TIME_HOUR, must contain exactly one source column whose value is a timestamp.
- Parameters:
sourceList- The source columns used by the partitioning strategy. For TIME_HOUR, must contain exactly one source column whose value is a timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceList
The source columns used by the partitioning strategy. For TIME_HOUR, must contain exactly one source column whose value is a timestamp.
- Parameters:
sourceList- The source columns used by the partitioning strategy. For TIME_HOUR, must contain exactly one source column whose value is a timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceList
The source columns used by the partitioning strategy. For TIME_HOUR, must contain exactly one source column whose value is a timestamp.
This is a convenience method that creates an instance of thePartitionSource.Builderavoiding the need to create one manually viaPartitionSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceList(List<PartitionSource>).- Parameters:
sourceList- a consumer that will call methods onPartitionSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-