Package org.apache.accumulo.core.data
Class ConstraintViolationSummary
- java.lang.Object
-
- org.apache.accumulo.core.data.ConstraintViolationSummary
-
- All Implemented Interfaces:
Serializable
public class ConstraintViolationSummary extends Object implements Serializable
A summary of constraint violations across some number of mutations.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description String
constrainClass
long
numberOfViolatingMutations
short
violationCode
String
violationDescription
-
Constructor Summary
Constructors Constructor Description ConstraintViolationSummary(String constrainClass, short violationCode, String violationDescription, long numberOfViolatingMutations)
Creates a new summary.ConstraintViolationSummary(TConstraintViolationSummary tcvs)
Creates a new summary from Thrift.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConstrainClass()
long
getNumberOfViolatingMutations()
short
getViolationCode()
String
getViolationDescription()
String
toString()
TConstraintViolationSummary
toThrift()
Converts this summary to Thrift.
-
-
-
Constructor Detail
-
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(TConstraintViolationSummary tcvs)
Creates a new summary from Thrift.- Parameters:
tcvs
- Thrift summary
-
-
Method Detail
-
getConstrainClass
public String getConstrainClass()
-
getViolationCode
public short getViolationCode()
-
getViolationDescription
public String getViolationDescription()
-
getNumberOfViolatingMutations
public long getNumberOfViolatingMutations()
-
toThrift
public TConstraintViolationSummary toThrift()
Converts this summary to Thrift.- Returns:
- Thrift summary
-
-