Interface IcebergSortOrder.Builder

  • 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 to 1. 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 writeOrder is 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 if writeOrder is 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 writeOrder is 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 if writeOrder is 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 writeOrder is provided.

      This is a convenience method that creates an instance of the IcebergSortField.Builder avoiding the need to create one manually via IcebergSortField.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fields(List<IcebergSortField>).

      Parameters:
      fields - a consumer that will call methods on IcebergSortField.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: