Class DefaultKeySizeConstraint
- java.lang.Object
-
- org.apache.accumulo.core.data.constraints.DefaultKeySizeConstraint
-
- org.apache.accumulo.core.constraints.DefaultKeySizeConstraint
-
- All Implemented Interfaces:
Constraint
,Constraint
@Deprecated(since="2.1.0") public class DefaultKeySizeConstraint extends DefaultKeySizeConstraint implements Constraint
Deprecated.since 2.1.0 UseDefaultKeySizeConstraint
A constraints that limits the size of keys to 1mb.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.constraints.Constraint
Constraint.Environment
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.data.constraints.Constraint
Constraint.Environment
-
-
Field Summary
Fields Modifier and Type Field Description protected static short
MAX__KEY_SIZE_EXCEEDED_VIOLATION
Deprecated.protected static long
maxSize
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultKeySizeConstraint()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Short>
check(Constraint.Environment env, Mutation mutation)
Deprecated.Checks a mutation for constraint violations.String
getViolationDescription(short violationCode)
Deprecated.Gets a short, one-sentence description of what a given violation code means.-
Methods inherited from class org.apache.accumulo.core.data.constraints.DefaultKeySizeConstraint
check
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.constraints.Constraint
check
-
-
-
-
Field Detail
-
MAX__KEY_SIZE_EXCEEDED_VIOLATION
protected static final short MAX__KEY_SIZE_EXCEEDED_VIOLATION
Deprecated.- See Also:
- Constant Field Values
-
maxSize
protected static final long maxSize
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getViolationDescription
public String getViolationDescription(short violationCode)
Deprecated.Description copied from interface:Constraint
Gets a short, one-sentence description of what a given violation code means.- Specified by:
getViolationDescription
in interfaceConstraint
- Specified by:
getViolationDescription
in interfaceConstraint
- Overrides:
getViolationDescription
in classDefaultKeySizeConstraint
- Parameters:
violationCode
- numeric violation code- Returns:
- matching violation description
-
check
public List<Short> check(Constraint.Environment env, Mutation mutation)
Deprecated.Description copied from interface:Constraint
Checks a mutation for constraint violations. If the mutation contains no violations, returns null. Otherwise, returns a list of violation codes. Violation codes must be non-negative. Negative violation codes are reserved for system use.- Specified by:
check
in interfaceConstraint
- Parameters:
env
- constraint environmentmutation
- mutation to check- Returns:
- list of violation codes, or null if none
-
-