Class Eligibility
java.lang.Object
org.apache.druid.server.compaction.Eligibility
Describes the eligibility of an interval for compaction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EligibilityDenotes that the candidate interval is eligible for afullcompaction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EligibilityDenotes that the candidate interval is not eligible for compaction.getMode()The mode of compaction (full or minor).inthashCode()booleanstatic EligibilitytoString()
-
Field Details
-
FULL
Denotes that the candidate interval is eligible for afullcompaction.
-
-
Method Details
-
isEligible
public boolean isEligible() -
getReason
-
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- ifisEligible()returns false.
-
fail
Denotes that the candidate interval is not eligible for compaction. -
minor
- Returns:
Eligibilitydenoting that the candidate interval is eligible for aminorcompaction.
-
equals
-
hashCode
public int hashCode() -
toString
-