org.apache.accumulo.server.constraints
Class UnsatisfiableConstraint
java.lang.Object
org.apache.accumulo.server.constraints.UnsatisfiableConstraint
- All Implemented Interfaces:
- Constraint
public class UnsatisfiableConstraint
- extends Object
- implements Constraint
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnsatisfiableConstraint
public UnsatisfiableConstraint(short vcode,
String violationDescription)
check
public List<Short> check(Constraint.Environment env,
Mutation mutation)
- Description copied from interface:
Constraint
- Checks a mutation for constrain violations. If the mutation contains no violations, then the implementation should return null. Otherwise it should return
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
getViolationDescription
public String getViolationDescription(short violationCode)
- Description copied from interface:
Constraint
- Implementers of this method should return a short one sentence description of what a given violation code means.
- Specified by:
getViolationDescription
in interface Constraint
Copyright © 2013 Apache Accumulo Project. All Rights Reserved.