org.apache.accumulo.examples.simple.constraints
Class AlphaNumKeyConstraint

java.lang.Object
  extended by org.apache.accumulo.examples.simple.constraints.AlphaNumKeyConstraint
All Implemented Interfaces:
Constraint

public class AlphaNumKeyConstraint
extends Object
implements Constraint

This class is an accumulo constraint that ensures all fields of a key are alpha numeric. See docs/examples/README.constraint for instructions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.accumulo.core.constraints.Constraint
Constraint.Environment
 
Constructor Summary
AlphaNumKeyConstraint()
           
 
Method Summary
 List<Short> check(Constraint.Environment env, Mutation mutation)
           
 String getViolationDescription(short violationCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlphaNumKeyConstraint

public AlphaNumKeyConstraint()
Method Detail

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.