Package org.apache.cassandra.db.rows
Interface WrappingUnfilteredRowIterator
- All Superinterfaces:
AutoCloseable,BaseRowIterator<Unfiltered>,CloseableIterator<Unfiltered>,Iterator<Unfiltered>,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 methods.
Note that if most of what you want to do is modifying/filtering the returned
Unfiltered, Transformation.apply(UnfilteredRowIterator, Transformation)
can be a simpler option.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()default RegularAndStaticColumnscolumns()A subset of the columns for the (static and regular) rows returned by this iterator.default booleanhasNext()default booleanWhether or not the rows returned by this iterator are in reversed clustering order.default TableMetadatametadata()The metadata for the table this iterator on.default Unfilterednext()default DecoratedKeyThe partition key of the partition this in an iterator over.default DeletionTimeThe partition level deletion for the partition this iterate over.default RowThe static part corresponding to this partition (this can be an empty row but cannot benull).default EncodingStatsstats()Return "statistics" about what is returned by this iterator.wrapped()Methods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.cassandra.db.rows.UnfilteredRowIterator
isEmpty
-
Method Details
-
wrapped
UnfilteredRowIterator wrapped() -
metadata
Description copied from interface:BaseRowIteratorThe metadata for the table this iterator on.- Specified by:
metadatain interfaceBaseRowIterator<Unfiltered>
-
columns
Description copied from interface:BaseRowIteratorA subset of the columns for the (static and regular) rows returned by this iterator. Every row returned by this iterator must guarantee that it has only those columns.- Specified by:
columnsin interfaceBaseRowIterator<Unfiltered>
-
isReverseOrder
default boolean isReverseOrder()Description copied from interface:BaseRowIteratorWhether or not the rows returned by this iterator are in reversed clustering order.- Specified by:
isReverseOrderin interfaceBaseRowIterator<Unfiltered>
-
partitionKey
Description copied from interface:BaseRowIteratorThe partition key of the partition this in an iterator over.- Specified by:
partitionKeyin interfaceBaseRowIterator<Unfiltered>
-
partitionLevelDeletion
Description copied from interface:UnfilteredRowIteratorThe partition level deletion for the partition this iterate over.- Specified by:
partitionLevelDeletionin interfaceUnfilteredRowIterator
-
staticRow
Description copied from interface:BaseRowIteratorThe static part corresponding to this partition (this can be an empty row but cannot benull).- Specified by:
staticRowin interfaceBaseRowIterator<Unfiltered>
-
stats
Description copied from interface:UnfilteredRowIteratorReturn "statistics" about what is returned by this iterator. Those are used for performance reasons (for delta-encoding for instance) and code should not expect those to be exact.- Specified by:
statsin interfaceUnfilteredRowIterator
-
hasNext
default boolean hasNext()- Specified by:
hasNextin interfaceIterator<Unfiltered>
-
next
- Specified by:
nextin interfaceIterator<Unfiltered>
-
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<Unfiltered>
-