Interface IcebergSortOrder.Builder

  • Method Details

    • orderId

      The ID of the sort order. Use 1 for 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. Use 1 for 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 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: