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.

@FunctionalInterface public interface SnapshotAncestryValidator
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 Details

  • Method Details

    • validate

      boolean validate(Iterable<Snapshot> baseSnapshots)
      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

      @Nonnull default String errorMessage()
      Validation message that will be included when throwing ValidationException
      Returns:
      message