Interface CompactionSegmentIterator
-
- All Superinterfaces:
Iterator<SegmentsToCompact>
- All Known Implementing Classes:
NewestSegmentFirstIterator
public interface CompactionSegmentIterator extends Iterator<SegmentsToCompact>
Segments in the lists which are the elements of this iterator are sorted according to the natural segment order (seeDataSegment.compareTo(org.apache.druid.timeline.DataSegment)).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,CompactionStatistics>totalCompactedStatistics()Return a map of dataSourceName to CompactionStatistics.Map<String,CompactionStatistics>totalSkippedStatistics()Return a map of dataSourceName to CompactionStatistics.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
totalCompactedStatistics
Map<String,CompactionStatistics> totalCompactedStatistics()
Return a map of dataSourceName to CompactionStatistics. This method returns the aggregated statistics of segments that was already compacted and does not need to be compacted again. Hence, segment that were not returned by theIterator.next()becuase it does not needs compaction. Note that the aggregations returned by this method is only up to the current point of the iterator being iterated.
-
totalSkippedStatistics
Map<String,CompactionStatistics> totalSkippedStatistics()
Return a map of dataSourceName to CompactionStatistics. This method returns the aggregated statistics of segments that was skipped as it cannot be compacted. Hence, segment that were not returned by theIterator.next()becuase it cannot be compacted. Note that the aggregations returned by this method is only up to the current point of the iterator being iterated.
-
-