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 sort fields that define how data is sorted within files.fields(Consumer<IcebergSortField.Builder>... fields) The sort fields that define how data is sorted within files.fields(IcebergSortField... fields) The sort fields that define how data is sorted within files.The ID of the 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 ID of the sort order. Use
1for a new sort order. Apache Iceberg uses the ID to track changes to a table's sort order.- Parameters:
orderId- The ID of the sort order. Use1for a new sort order. Apache Iceberg uses the ID to track changes to a table's sort order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. A sort order for a migration can have at most five fields.
- Parameters:
fields- The sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. A sort order for a migration can have at most five fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. A sort order for a migration can have at most five fields.
- Parameters:
fields- The sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. A sort order for a migration can have at most five fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
The sort fields that define how data is sorted within files. Each field specifies a source field, sort direction, and null ordering. A sort order for a migration can have at most five fields.
This is a convenience method that creates an instance of theIcebergSortField.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:
-