Class NewestSegmentFirstPolicy
java.lang.Object
org.apache.druid.server.compaction.BaseCandidateSearchPolicy
org.apache.druid.server.compaction.NewestSegmentFirstPolicy
- All Implemented Interfaces:
CompactionCandidateSearchPolicy
Implementation of
CompactionCandidateSearchPolicy that prioritizes
intervals which have the latest data.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Comparator<CompactionCandidate>Compares between two compaction candidates.Methods inherited from class org.apache.druid.server.compaction.BaseCandidateSearchPolicy
compareCandidates, equals, getPriorityDatasource, hashCode, isEligibleForCompaction
-
Constructor Details
-
NewestSegmentFirstPolicy
-
-
Method Details
-
getSegmentComparator
Description copied from class:BaseCandidateSearchPolicyCompares between two compaction candidates. Used to determine the order in which segments and intervals should be picked for compaction.- Specified by:
getSegmentComparatorin classBaseCandidateSearchPolicy
-