Class StorageAttachedIndexSearcher.ScoreOrderedResultRetriever

java.lang.Object
org.apache.cassandra.utils.AbstractIterator<UnfilteredRowIterator>
org.apache.cassandra.index.sai.plan.StorageAttachedIndexSearcher.ScoreOrderedResultRetriever
All Implemented Interfaces:
com.google.common.collect.PeekingIterator<UnfilteredRowIterator>, AutoCloseable, Iterator<UnfilteredRowIterator>, BasePartitionIterator<UnfilteredRowIterator>, UnfilteredPartitionIterator, CloseableIterator<UnfilteredRowIterator>
Enclosing class:
StorageAttachedIndexSearcher

public class StorageAttachedIndexSearcher.ScoreOrderedResultRetriever extends AbstractIterator<UnfilteredRowIterator>
A result retriever that consumes an iterator primary keys sorted by some score, materializes the row for each primary key (currently, each primary key is required to be fully qualified and should only point to one row), apply the filter tree to the row to test that the real row satisfies the WHERE clause, and finally tests that the row is valid for the ORDER BY clause. The class performs some optimizations to avoid materializing rows unnecessarily. See the class for more details.

The resulting UnfilteredRowIterator objects are not guaranteed to be in any particular order. It is the responsibility of the caller to sort the results if necessary.