Interface IcebergSchema.Builder

  • Method Details

    • schemaId

      IcebergSchema.Builder schemaId(Integer schemaId)

      The unique identifier for this schema version within the Iceberg table's schema evolution history.

      Parameters:
      schemaId - The unique identifier for this schema version within the Iceberg table's schema evolution history.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identifierFieldIds

      IcebergSchema.Builder identifierFieldIds(Collection<Integer> identifierFieldIds)

      The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.

      Parameters:
      identifierFieldIds - The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identifierFieldIds

      IcebergSchema.Builder identifierFieldIds(Integer... identifierFieldIds)

      The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.

      Parameters:
      identifierFieldIds - The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The root type of the schema structure, typically "struct" for Iceberg table schemas.

      Parameters:
      type - The root type of the schema structure, typically "struct" for Iceberg table schemas.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The root type of the schema structure, typically "struct" for Iceberg table schemas.

      Parameters:
      type - The root type of the schema structure, typically "struct" for Iceberg table schemas.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fields

      The list of field definitions that make up the table schema, including field names, types, and metadata.

      Parameters:
      fields - The list of field definitions that make up the table schema, including field names, types, and metadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      The list of field definitions that make up the table schema, including field names, types, and metadata.

      Parameters:
      fields - The list of field definitions that make up the table schema, including field names, types, and metadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fields

      The list of field definitions that make up the table schema, including field names, types, and metadata.

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

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

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