org.apache.accumulo.server.constraints
Class MetadataConstraints

java.lang.Object
  extended by org.apache.accumulo.server.constraints.MetadataConstraints
All Implemented Interfaces:
Constraint

public class MetadataConstraints
extends java.lang.Object
implements Constraint


Constructor Summary
MetadataConstraints()
           
 
Method Summary
 java.util.List<java.lang.Short> check(Mutation mutation)
          Checks a mutation for constrain violations.
protected  void finalize()
           
 java.lang.String getViolationDescription(short violationCode)
          Implementers of this method should return a short one sentence description of what a given violation code means.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataConstraints

public MetadataConstraints()
Method Detail

check

public java.util.List<java.lang.Short> check(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 java.lang.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

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.