Interface Restriction


public interface Restriction

A glorified Predicate with support for riskscape type safety checks and geotools Filter representation.

  • Field Details

  • Method Details

    • getPredicate

      Predicate<Tuple> getPredicate()

      Return the predicate used for deciding whether a tuple should be removed or not.

      Returns:
      Predicate
    • validate

      List<Problem> validate(Struct type)
      Returns:
      a list of problems that this Restriction would encounter if it was applied to a value of the given type.
    • restrictType

      default ResultOrProblems<Restrictor> restrictType(Struct sourceType)