Interface IcebergSortOrder.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IcebergSortOrder.Builder,,IcebergSortOrder> SdkBuilder<IcebergSortOrder.Builder,,IcebergSortOrder> SdkPojo
- Enclosing class:
IcebergSortOrder
-
Method Summary
Modifier and TypeMethodDescriptionfields(Collection<IcebergSortField> fields) The list of sort fields that define how data is sorted within files.fields(Consumer<IcebergSortField.Builder>... fields) The list of sort fields that define how data is sorted within files.fields(IcebergSortField... fields) The list of sort fields that define how data is sorted within files.The unique identifier for this sort order.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
-
orderId
The unique identifier for this sort order. If not specified, defaults to
1. The order ID is used by Apache Iceberg to track sort order evolution.- Parameters:
orderId- The unique identifier for this sort order. If not specified, defaults to1. The order ID is used by Apache Iceberg to track sort order evolution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The list of sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. This field is required if
writeOrderis provided.- Parameters:
fields- The list of sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. This field is required ifwriteOrderis provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The list of sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. This field is required if
writeOrderis provided.- Parameters:
fields- The list of sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. This field is required ifwriteOrderis provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The list of sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. This field is required if
This is a convenience method that creates an instance of thewriteOrderis provided.IcebergSortField.Builderavoiding the need to create one manually viaIcebergSortField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofields(List<IcebergSortField>).- Parameters:
fields- a consumer that will call methods onIcebergSortField.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-