Class LoadRule
java.lang.Object
org.apache.druid.server.coordinator.rules.LoadRule
- All Implemented Interfaces:
Rule
- Direct Known Subclasses:
ForeverLoadRule,IntervalLoadRule,PeriodLoadRule
LoadRules indicate the number of replicants a segment should have in a given tier.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetNumReplicants(String tier) inthashCode()voidrun(DataSegment segment, SegmentActionHandler handler) booleanboolean
-
Constructor Details
-
LoadRule
-
-
Method Details
-
getTieredReplicants
-
useDefaultTierForNull
public boolean useDefaultTierForNull() -
run
-
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
-
equals
-
hashCode
public int hashCode()
-