Package org.apache.iceberg.catalog
Interface TableCommit
@Immutable
public interface TableCommit
This represents a commit to be applied for a single table with
UpdateRequirement
s to be
validated and MetadataUpdate
s that have been applied. The UpdateRequirement
s and
MetadataUpdate
s can be derived from table's base and updated TableMetadata
when
using create(TableIdentifier, TableMetadata, TableMetadata)
.-
Method Summary
Modifier and TypeMethodDescriptionstatic TableCommit
create
(TableIdentifier identifier, TableMetadata base, TableMetadata updated) This creates aTableCommit
instance to be applied for a single table withUpdateRequirement
s to be validated andMetadataUpdate
s that have been applied.updates()
-
Method Details
-
identifier
TableIdentifier identifier() -
requirements
List<UpdateRequirement> requirements() -
updates
List<MetadataUpdate> updates() -
create
This creates aTableCommit
instance to be applied for a single table withUpdateRequirement
s to be validated andMetadataUpdate
s that have been applied.- Parameters:
identifier
- TheTableIdentifier
to create theTableCommit
for.base
- The baseTableMetadata
whereUpdateRequirement
s are derived from and used for validation.updated
- The updatedTableMetadata
whereMetadataUpdate
s that have been applied are derived from.- Returns:
- A
TableCommit
instance to be applied for a single table
-