Package org.apache.iceberg.catalog
Interface TableCommit
-
@Immutable public interface TableCommit
This represents a commit to be applied for a single table withUpdateRequirement
s to be validated andMetadataUpdate
s that have been applied. TheUpdateRequirement
s andMetadataUpdate
s can be derived from table's base and updatedTableMetadata
when usingcreate(TableIdentifier, TableMetadata, TableMetadata)
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static 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.TableIdentifier
identifier()
java.util.List<UpdateRequirement>
requirements()
java.util.List<MetadataUpdate>
updates()
-
-
-
Method Detail
-
identifier
TableIdentifier identifier()
-
requirements
java.util.List<UpdateRequirement> requirements()
-
updates
java.util.List<MetadataUpdate> updates()
-
create
static 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.- 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
-
-