Class UnfilteredPartitionIterators
java.lang.Object
org.apache.cassandra.db.partitions.UnfilteredPartitionIterators
Static methods to work with partition iterators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classSerialize each UnfilteredSerializer one after the other, with an initial byte that indicates whether we're done or not. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnfilteredPartitionIteratorconcat(List<UnfilteredPartitionIterator> iterators) static voiddigest(UnfilteredPartitionIterator iterator, Digest digest, int version) Digests the the provided iterator.static PartitionIteratorfilter(UnfilteredPartitionIterator iterator, long nowInSec) static UnfilteredRowIteratorgetOnlyElement(UnfilteredPartitionIterator iter, SinglePartitionReadCommand command) static UnfilteredPartitionIteratorloggingIterator(UnfilteredPartitionIterator iterator, String id, boolean fullDetails) Wraps the provided iterator so it logs the returned rows/RT for debugging purposes.static UnfilteredPartitionIteratormerge(List<? extends UnfilteredPartitionIterator> iterators, UnfilteredPartitionIterators.MergeListener listener) static UnfilteredPartitionIteratormergeLazily(List<? extends UnfilteredPartitionIterator> iterators)
-
Method Details
-
getOnlyElement
public static UnfilteredRowIterator getOnlyElement(UnfilteredPartitionIterator iter, SinglePartitionReadCommand command) -
concat
-
filter
-
merge
public static UnfilteredPartitionIterator merge(List<? extends UnfilteredPartitionIterator> iterators, UnfilteredPartitionIterators.MergeListener listener) -
mergeLazily
public static UnfilteredPartitionIterator mergeLazily(List<? extends UnfilteredPartitionIterator> iterators) -
digest
Digests the the provided iterator. Caller must close the provided iterator.- Parameters:
iterator- the iterator to digest.digest- theDigestto use.version- the messaging protocol to use when producing the digest.
-
serializerForIntraNode
-
loggingIterator
public static UnfilteredPartitionIterator loggingIterator(UnfilteredPartitionIterator iterator, String id, boolean fullDetails) Wraps the provided iterator so it logs the returned rows/RT for debugging purposes.Note that this is only meant for debugging as this can log a very large amount of logging at INFO.
-