Interface IcebergSortField.Builder

    • Method Detail

      • sourceId

        IcebergSortField.Builder sourceId​(Integer sourceId)

        The identifier of the source field from the table schema that this sort field is based on.

        Parameters:
        sourceId - The identifier of the source field from the table schema that this sort field is based on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transform

        IcebergSortField.Builder transform​(String transform)

        The transformation function applied to the source field before sorting, such as identity, bucket, or truncate.

        Parameters:
        transform - The transformation function applied to the source field before sorting, such as identity, bucket, or truncate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • direction

        IcebergSortField.Builder direction​(String direction)

        The sort direction for this field, either ascending or descending.

        Parameters:
        direction - The sort direction for this field, either ascending or descending.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IcebergSortDirection, IcebergSortDirection
      • nullOrder

        IcebergSortField.Builder nullOrder​(String nullOrder)

        The ordering behavior for null values in this field, specifying whether nulls should appear first or last in the sort order.

        Parameters:
        nullOrder - The ordering behavior for null values in this field, specifying whether nulls should appear first or last in the sort order.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IcebergNullOrder, IcebergNullOrder
      • nullOrder

        IcebergSortField.Builder nullOrder​(IcebergNullOrder nullOrder)

        The ordering behavior for null values in this field, specifying whether nulls should appear first or last in the sort order.

        Parameters:
        nullOrder - The ordering behavior for null values in this field, specifying whether nulls should appear first or last in the sort order.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        IcebergNullOrder, IcebergNullOrder