Class NewestSegmentFirstPolicy
- java.lang.Object
-
- org.apache.druid.server.coordinator.compact.NewestSegmentFirstPolicy
-
- All Implemented Interfaces:
CompactionSegmentSearchPolicy
public class NewestSegmentFirstPolicy extends Object implements CompactionSegmentSearchPolicy
This policy searches segments for compaction from the newest one to oldest one.
-
-
Constructor Summary
Constructors Constructor Description NewestSegmentFirstPolicy(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactionSegmentIteratorreset(Map<String,DataSourceCompactionConfig> compactionConfigs, Map<String,org.apache.druid.timeline.SegmentTimeline> dataSources, Map<String,List<org.joda.time.Interval>> skipIntervals)Reset the current states of this policy.
-
-
-
Method Detail
-
reset
public CompactionSegmentIterator reset(Map<String,DataSourceCompactionConfig> compactionConfigs, Map<String,org.apache.druid.timeline.SegmentTimeline> dataSources, Map<String,List<org.joda.time.Interval>> skipIntervals)
Description copied from interface:CompactionSegmentSearchPolicyReset the current states of this policy. This method should be called whenever iterating starts.- Specified by:
resetin interfaceCompactionSegmentSearchPolicy
-
-