Package org.apache.cassandra.db.rows
Class RowIterators
java.lang.Object
org.apache.cassandra.db.rows.RowIterators
Static methods to work with row iterators.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddigest(RowIterator iterator, Digest digest) static RowIteratorloggingIterator(RowIterator iterator, String id) Wraps the provided iterator so it logs the returned rows for debugging purposes.static RowIteratorwithOnlyQueriedData(RowIterator iterator, ColumnFilter filter) Filter the provided iterator to only include cells that are selected by the user.
-
Method Details
-
digest
-
withOnlyQueriedData
Filter the provided iterator to only include cells that are selected by the user.- Parameters:
iterator- the iterator to filter.filter- theColumnFilterto use when deciding which cells are queried by the user. This should be the filter that was used when queryingiterator.- Returns:
- the filtered iterator..
-
loggingIterator
Wraps the provided iterator so it logs the returned rows for debugging purposes.Note that this is only meant for debugging as this can log a very large amount of logging at INFO.
-