Interface IcebergMetadata.Builder

  • Method Details

    • schema

      The schema for an Iceberg table.

      Parameters:
      schema - The schema for an Iceberg table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • schema

      The schema for an Iceberg table.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to schema(IcebergSchema).

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

      IcebergMetadata.Builder partitionSpec(IcebergPartitionSpec partitionSpec)

      The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.

      Parameters:
      partitionSpec - The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • partitionSpec

      default IcebergMetadata.Builder partitionSpec(Consumer<IcebergPartitionSpec.Builder> partitionSpec)

      The partition specification for the Iceberg table. Partitioning organizes data into separate files based on the values of one or more fields, which can improve query performance by reducing the amount of data scanned. Each partition field applies a transform (such as identity, year, month, or bucket) to a single field.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to partitionSpec(IcebergPartitionSpec).

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

      IcebergMetadata.Builder writeOrder(IcebergSortOrder writeOrder)

      The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.

      Parameters:
      writeOrder - The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • writeOrder

      default IcebergMetadata.Builder writeOrder(Consumer<IcebergSortOrder.Builder> writeOrder)

      The sort order for the Iceberg table. Sort order defines how data is sorted within data files, which can improve query performance by enabling more efficient data skipping and filtering.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to writeOrder(IcebergSortOrder).

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

      IcebergMetadata.Builder properties(Map<String,String> properties)

      A map of custom configuration properties for the Iceberg table.

      Parameters:
      properties - A map of custom configuration properties for the Iceberg table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.