Interface IcebergPartitionSpec.Builder

  • Method Details

    • fields

      The list of partition fields that define how the table data is partitioned. Each field specifies a source field and a transform to apply. This field is required if partitionSpec is provided.

      Parameters:
      fields - The list of partition fields that define how the table data is partitioned. Each field specifies a source field and a transform to apply. This field is required if partitionSpec is provided.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      The list of partition fields that define how the table data is partitioned. Each field specifies a source field and a transform to apply. This field is required if partitionSpec is provided.

      Parameters:
      fields - The list of partition fields that define how the table data is partitioned. Each field specifies a source field and a transform to apply. This field is required if partitionSpec is provided.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      The list of partition fields that define how the table data is partitioned. Each field specifies a source field and a transform to apply. This field is required if partitionSpec is provided.

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

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

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

      The unique identifier for this partition specification. If not specified, defaults to 0.

      Parameters:
      specId - The unique identifier for this partition specification. If not specified, defaults to 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.