public class NewestSegmentFirstPolicy extends Object implements CompactionSegmentSearchPolicy
| Constructor and Description |
|---|
NewestSegmentFirstPolicy(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
CompactionSegmentIterator |
reset(Map<String,DataSourceCompactionConfig> compactionConfigs,
Map<String,SegmentTimeline> dataSources,
Map<String,List<org.joda.time.Interval>> skipIntervals)
Reset the current states of this policy.
|
@Inject public NewestSegmentFirstPolicy(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public CompactionSegmentIterator reset(Map<String,DataSourceCompactionConfig> compactionConfigs, Map<String,SegmentTimeline> dataSources, Map<String,List<org.joda.time.Interval>> skipIntervals)
CompactionSegmentSearchPolicyreset in interface CompactionSegmentSearchPolicyCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.