Interface Rule
-
- All Known Implementing Classes:
BroadcastDistributionRule,DropRule,ForeverBroadcastDistributionRule,ForeverDropRule,ForeverLoadRule,IntervalBroadcastDistributionRule,IntervalDropRule,IntervalLoadRule,LoadRule,PeriodBroadcastDistributionRule,PeriodDropBeforeRule,PeriodDropRule,PeriodLoadRule
public interface RuleRetention rule that governs retention and distribution of segments in a cluster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanappliesTo(org.apache.druid.timeline.DataSegment segment, org.joda.time.DateTime referenceTimestamp)booleanappliesTo(org.joda.time.Interval interval, org.joda.time.DateTime referenceTimestamp)StringgetType()voidrun(org.apache.druid.timeline.DataSegment segment, SegmentActionHandler segmentHandler)
-
-
-
Method Detail
-
getType
String getType()
-
appliesTo
boolean appliesTo(org.apache.druid.timeline.DataSegment segment, org.joda.time.DateTime referenceTimestamp)
-
appliesTo
boolean appliesTo(org.joda.time.Interval interval, org.joda.time.DateTime referenceTimestamp)
-
run
void run(org.apache.druid.timeline.DataSegment segment, SegmentActionHandler segmentHandler)
-
-