org.apache.accumulo.examples.simple.constraints
Class MaxMutationSize
java.lang.Object
org.apache.accumulo.examples.simple.constraints.MaxMutationSize
- All Implemented Interfaces:
- Constraint
public class MaxMutationSize
- extends Object
- implements Constraint
Ensure that mutations are a reasonable size: we must be able to fit several in memory at a time.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxMutationSize
public MaxMutationSize()
getViolationDescription
public String getViolationDescription(short violationCode)
- Specified by:
getViolationDescription in interface Constraint
check
public List<Short> check(Constraint.Environment env,
Mutation mutation)
- Specified by:
check in interface Constraint
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.