Class KeyRangeConcatIterator

All Implemented Interfaces:
com.google.common.collect.PeekingIterator<PrimaryKey>, Closeable, AutoCloseable, Iterator<PrimaryKey>

public class KeyRangeConcatIterator extends KeyRangeIterator
KeyRangeConcatIterator takes a list of sorted range iterators and concatenates them, leaving duplicates in place, to produce a new stably sorted iterator. Duplicates are eliminated later in StorageAttachedIndexSearcher as results from multiple SSTable indexes and their respective segments are consumed.

ex. (1, 2, 3) + (3, 3, 4, 5) -> (1, 2, 3, 3, 3, 4, 5) ex. (1, 2, 2, 3) + (3, 4, 4, 6, 6, 7) -> (1, 2, 2, 3, 3, 4, 4, 6, 6, 7)