Class VisibilityConstraint

All Implemented Interfaces:

public class VisibilityConstraint extends Object implements Constraint
A constraint that checks the visibility of columns against the actor's authorizations. Violation codes:
  • 1 = failure to parse visibility expression
  • 2 = insufficient authorization
2.1.0 moved from org.apache.accumulo.core.constraints package
  • Constructor Details

    • VisibilityConstraint

      public VisibilityConstraint()
  • Method Details

    • getViolationDescription

      public String getViolationDescription(short violationCode)
      Description copied from interface: Constraint
      Gets a short, one-sentence description of what a given violation code means.
      Specified by:
      getViolationDescription in interface Constraint
      violationCode - numeric violation code
      matching violation description
    • check

      public List<Short> check(Constraint.Environment env, Mutation mutation)
      Description copied from interface: Constraint
      Checks a mutation for constraint violations. If the mutation contains no violations, returns null. Otherwise, returns a list of violation codes. Violation codes must be non-negative. Negative violation codes are reserved for system use.
      Specified by:
      check in interface Constraint
      env - constraint environment
      mutation - mutation to check
      list of violation codes, or null if none