Class LoadRule
- java.lang.Object
-
- org.apache.druid.server.coordinator.rules.LoadRule
-
- All Implemented Interfaces:
Rule
- Direct Known Subclasses:
ForeverLoadRule,IntervalLoadRule,PeriodLoadRule
public abstract class LoadRule extends Object implements Rule
LoadRules indicate the number of replicants a segment should have in a given tier.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetNumReplicants(String tier)Map<String,Integer>getTieredReplicants()inthashCode()voidrun(org.apache.druid.timeline.DataSegment segment, SegmentActionHandler handler)booleanshouldMatchingSegmentBeLoaded()booleanuseDefaultTierForNull()
-
-
-
Method Detail
-
useDefaultTierForNull
public boolean useDefaultTierForNull()
-
run
public void run(org.apache.druid.timeline.DataSegment segment, SegmentActionHandler handler)
-
shouldMatchingSegmentBeLoaded
public boolean shouldMatchingSegmentBeLoaded()
- Returns:
- Whether a segment that matches this rule needs to be loaded on a tier. Used in making handoff decisions.
-
getNumReplicants
public int getNumReplicants(String tier)
-
-