Class Eligibility

java.lang.Object
org.apache.druid.server.compaction.Eligibility

public class Eligibility extends Object
Describes the eligibility of an interval for compaction.
  • Field Details

    • FULL

      public static final Eligibility FULL
      Denotes that the candidate interval is eligible for a full compaction.
  • Method Details

    • isEligible

      public boolean isEligible()
    • getReason

      public String getReason()
    • getMode

      public CompactionMode getMode()
      The mode of compaction (full or minor). This is non-null only when the candidate is considered to be eligible for compaction by the policy.
      Throws:
      DruidException - if isEligible() returns false.
    • fail

      public static Eligibility fail(String messageFormat, Object... args)
      Denotes that the candidate interval is not eligible for compaction.
    • minor

      public static Eligibility minor(String messageFormat, Object... args)
      Returns:
      Eligibility denoting that the candidate interval is eligible for a minor compaction.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object