Class RowAndDeletionMergeIterator

  • All Implemented Interfaces:
    com.google.common.collect.PeekingIterator<Unfiltered>, java.lang.AutoCloseable, java.util.Iterator<Unfiltered>, BaseRowIterator<Unfiltered>, UnfilteredRowIterator, CloseableIterator<Unfiltered>

    public class RowAndDeletionMergeIterator
    extends AbstractUnfilteredRowIterator
    An iterator that merges a source of rows with the range tombstone and partition level deletion of a give partition.

    This is used by our Partition implementations to produce a UnfilteredRowIterator by merging the rows and deletion infos that are kept separate. This has also 2 additional role: 1) this make sure the row returned only includes the columns selected for the resulting iterator. 2) this (optionally) remove any data that can be shadowed (see commet on 'removeShadowedData' below for more details)