Interface CompactionSegmentIterator

All Superinterfaces:
Iterator<CompactionCandidate>
All Known Implementing Classes:
DataSourceCompactibleSegmentIterator, PriorityBasedCompactionSegmentIterator

public interface CompactionSegmentIterator extends Iterator<CompactionCandidate>
Iterator over compactible segments.
  • Method Details

    • getCompactedSegments

      List<CompactionCandidate> getCompactedSegments()
      List of candidate segments that are already compacted and do not need to be compacted again. None of these segments are returned by Iterator.next().
    • getSkippedSegments

      List<CompactionCandidate> getSkippedSegments()
      List of candidate segments that have been skipped for compaction as they cannot be compacted due to some reason. None of these segments are returned by Iterator.next().