Package org.apache.iceberg
Interface SnapshotAncestryValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to support validating snapshot ancestry during the commit process.
Validation will be called after the table metadata is refreshed to pick up any changes to the table state.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringValidation message that will be included when throwingValidationExceptionbooleanValidate the snapshots based on the refreshed table state.
-
Field Details
-
NON_VALIDATING
-
-
Method Details
-
validate
Validate the snapshots based on the refreshed table state.- Parameters:
baseSnapshots- ancestry of the base table metadata snapshots- Returns:
- boolean for whether the update is valid
-
errorMessage
Validation message that will be included when throwingValidationException- Returns:
- message
-