Class WrappingUnfilteredRowIterator

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.util.Iterator<Unfiltered>, BaseRowIterator<Unfiltered>, UnfilteredRowIterator, CloseableIterator<Unfiltered>

    public abstract class WrappingUnfilteredRowIterator
    extends com.google.common.collect.UnmodifiableIterator<Unfiltered>
    implements UnfilteredRowIterator
    Abstract class to make writing unfiltered iterators that wrap another iterator easier. By default, the wrapping iterator simply delegate every call to the wrapped iterator so concrete implementations will have to override some of the methods.

    Note that if most of what you want to do is modifying/filtering the returned Unfiltered, org.apache.cassandra.db.transform.Transformation#merge(UnfilteredRowIterator,Transformation) can be a simpler option.