Class PartitionIterators
java.lang.Object
org.apache.cassandra.db.partitions.PartitionIterators
-
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionIteratorconcat(List<PartitionIterator> iterators) static voidconsume(PartitionIterator iterator) static PartitionIteratordoOnClose(PartitionIterator delegate, Runnable action) Wraps the provided iterator to run a specified action on close.static RowIteratorgetOnlyElement(PartitionIterator iter, SinglePartitionReadQuery query) static PartitionIteratorloggingIterator(PartitionIterator iterator, String id) Wraps the provided iterator so it logs the returned rows for debugging purposes.static PartitionIteratorsingletonIterator(RowIterator iterator)
-
Method Details
-
getOnlyElement
-
concat
-
singletonIterator
-
consume
-
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.
-
doOnClose
Wraps the provided iterator to run a specified action on close. Note that the action will be run even if closure of the provided iterator throws an exception.
-