Interface PartitionIterator
- All Superinterfaces:
AutoCloseable,BasePartitionIterator<RowIterator>,CloseableIterator<RowIterator>,Iterator<RowIterator>
- All Known Implementing Classes:
AggregationQueryPager.AggregationPartitionIterator,AggregationQueryPager.GroupByPartitionIterator,FilteredPartitions,InMemoryPartitionIterator,RangeCommandIterator,ScanAllRangesCommandIterator
An iterator over a number of (filtered) partition.
PartitionIterator is to RowIterator what UnfilteredPartitionIterator is to UnfilteredRowIterator
though unlike UnfilteredPartitionIterator, it is not guaranteed that the RowIterator
returned are in partitioner order.
The object returned by a call to next() is only guaranteed to be
valid until the next call to hasNext() or next(). If a consumer wants to keep a
reference on the returned objects for longer than the iteration, it must
make a copy of it explicitely.
-
Method Summary
Methods inherited from interface org.apache.cassandra.db.partitions.BasePartitionIterator
closeMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove