Class ConstraintViolationSummary

java.lang.Object
org.apache.accumulo.core.data.ConstraintViolationSummary

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

    • constrainClass

      public String constrainClass
    • violationCode

      public short violationCode
    • violationDescription

      public String 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 violated
      violationCode - violation code
      violationDescription - description of violation
      numberOfViolatingMutations - 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

      public String getConstrainClass()
    • getViolationCode

      public short getViolationCode()
    • getViolationDescription

      public String getViolationDescription()
    • getNumberOfViolatingMutations

      public long getNumberOfViolatingMutations()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toThrift

      public org.apache.accumulo.core.data.thrift.TConstraintViolationSummary toThrift()
      Converts this summary to Thrift.
      Returns:
      Thrift summary