Package org.apache.accumulo.core.data
Class ConstraintViolationSummary
java.lang.Object
org.apache.accumulo.core.data.ConstraintViolationSummary
A summary of constraint violations across some number of mutations.
-
Field Summary
Modifier and TypeFieldDescriptionlong
short
-
Constructor Summary
ConstructorDescriptionConstraintViolationSummary
(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations) Creates a new summary.ConstraintViolationSummary
(org.apache.accumulo.core.data.thrift.TConstraintViolationSummary tcvs) Creates a new summary from Thrift. -
Method Summary
-
Field Details
-
constrainClass
-
violationCode
public short violationCode -
violationDescription
-
numberOfViolatingMutations
public long numberOfViolatingMutations
-
-
Constructor Details
-
ConstraintViolationSummary
public ConstraintViolationSummary(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations) Creates a new summary.- Parameters:
constrainClass
- class of constraint that was violatedviolationCode
- violation codeviolationDescription
- description of violationnumberOfViolatingMutations
- number of mutations that produced this particular violation
-
ConstraintViolationSummary
public ConstraintViolationSummary(org.apache.accumulo.core.data.thrift.TConstraintViolationSummary tcvs) Creates a new summary from Thrift.- Parameters:
tcvs
- Thrift summary
-
-
Method Details
-
getConstrainClass
-
getViolationCode
public short getViolationCode() -
getViolationDescription
-
getNumberOfViolatingMutations
public long getNumberOfViolatingMutations() -
toString
-
toThrift
public org.apache.accumulo.core.data.thrift.TConstraintViolationSummary toThrift()Converts this summary to Thrift.- Returns:
- Thrift summary
-