Package org.apache.accumulo.core.data
Class ConstraintViolationSummary
java.lang.Object
org.apache.accumulo.core.data.ConstraintViolationSummary
- All Implemented Interfaces:
- Serializable
A summary of constraint violations across some number of mutations.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionlongshort
- 
Constructor SummaryConstructorsConstructorDescriptionConstraintViolationSummary(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations) Creates a new summary.ConstraintViolationSummary(org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary tcvs) Creates a new summary from Thrift.
- 
Method Summary
- 
Field Details- 
constrainClass
- 
violationCodepublic short violationCode
- 
violationDescription
- 
numberOfViolatingMutationspublic long numberOfViolatingMutations
 
- 
- 
Constructor Details- 
ConstraintViolationSummarypublic ConstraintViolationSummary(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations) Creates a new summary.- Parameters:
- constrainClass- class of constraint that was violated
- violationCode- violation code
- violationDescription- description of violation
- numberOfViolatingMutations- number of mutations that produced this particular violation
 
- 
ConstraintViolationSummarypublic ConstraintViolationSummary(org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary tcvs) Creates a new summary from Thrift.- Parameters:
- tcvs- Thrift summary
 
 
- 
- 
Method Details- 
getConstrainClass
- 
getViolationCodepublic short getViolationCode()
- 
getViolationDescription
- 
getNumberOfViolatingMutationspublic long getNumberOfViolatingMutations()
- 
toString
- 
toThriftpublic org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary toThrift()Converts this summary to Thrift.- Returns:
- Thrift summary
 
 
-