Class ConstraintViolationSummary


  • public class ConstraintViolationSummary
    extends Object
    A summary of constraint violations across some number of mutations.
    • Field Detail

      • constrainClass

        public String constrainClass
      • violationCode

        public short violationCode
      • violationDescription

        public String violationDescription
      • numberOfViolatingMutations

        public long numberOfViolatingMutations
    • Constructor Detail

      • ConstraintViolationSummary

        public 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
      • ConstraintViolationSummary

        public ConstraintViolationSummary​(org.apache.accumulo.core.dataImpl.thrift.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 org.apache.accumulo.core.dataImpl.thrift.TConstraintViolationSummary toThrift()
        Converts this summary to Thrift.
        Returns:
        Thrift summary