Interface IcebergSchema.Builder

    • Method Detail

      • 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

        IcebergSchema.Builder type​(String 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:
        IcebergStructTypeEnum, IcebergStructTypeEnum
      • fields

        IcebergSchema.Builder fields​(Collection<IcebergStructField> 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

        IcebergSchema.Builder fields​(IcebergStructField... 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.