org.apache.accumulo.examples.simple.constraints
Class NumericValueConstraint
java.lang.Object
org.apache.accumulo.examples.simple.constraints.NumericValueConstraint
- All Implemented Interfaces:
- Constraint
public class NumericValueConstraint
- extends Object
- implements Constraint
This class is an accumulo constraint that ensures values are numeric strings. See docs/examples/README.constraint for instructions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericValueConstraint
public NumericValueConstraint()
check
public List<Short> check(Constraint.Environment env,
Mutation mutation)
- Specified by:
check in interface Constraint
getViolationDescription
public String getViolationDescription(short violationCode)
- Specified by:
getViolationDescription in interface Constraint
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.