@Value.Immutable
public interface TableCommit
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)
.Modifier and Type | Method and Description |
---|---|
static TableCommit |
create(TableIdentifier identifier,
TableMetadata base,
TableMetadata updated)
This creates a
TableCommit instance to be applied for a single table with UpdateRequirement s to be validated and MetadataUpdate s that have been applied. |
TableIdentifier |
identifier() |
java.util.List<UpdateRequirement> |
requirements() |
java.util.List<MetadataUpdate> |
updates() |
TableIdentifier identifier()
java.util.List<UpdateRequirement> requirements()
java.util.List<MetadataUpdate> updates()
static TableCommit create(TableIdentifier identifier, TableMetadata base, TableMetadata updated)
TableCommit
instance to be applied for a single table with UpdateRequirement
s to be validated and MetadataUpdate
s that have been applied.identifier
- The TableIdentifier
to create the TableCommit
for.base
- The base TableMetadata
where UpdateRequirement
s are derived from
and used for validation.updated
- The updated TableMetadata
where MetadataUpdate
s that have been
applied are derived from.TableCommit
instance to be applied for a single table