Class StorageAttachedIndexSearcher
java.lang.Object
org.apache.cassandra.index.sai.plan.StorageAttachedIndexSearcher
- All Implemented Interfaces:
Index.Searcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA 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. -
Constructor Summary
ConstructorsConstructorDescriptionStorageAttachedIndexSearcher(ColumnFamilyStore cfs, TableQueryMetrics tableQueryMetrics, ReadCommand command, RowFilter indexFilter, long executionQuotaMs) -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns theReadCommandfor which this searcher has been created.filterReplicaFilteringProtection(PartitionIterator fullResponse) Replica filtering protection may fetch data that doesn't match query conditions.search(ReadExecutionController executionController)
-
Constructor Details
-
StorageAttachedIndexSearcher
public StorageAttachedIndexSearcher(ColumnFamilyStore cfs, TableQueryMetrics tableQueryMetrics, ReadCommand command, RowFilter indexFilter, long executionQuotaMs)
-
-
Method Details
-
command
Description copied from interface:Index.SearcherReturns theReadCommandfor which this searcher has been created.- Specified by:
commandin interfaceIndex.Searcher- Returns:
- the base read command
-
filterReplicaFilteringProtection
Description copied from interface:Index.SearcherReplica filtering protection may fetch data that doesn't match query conditions. On coordinator, we need to filter the replicas' responses again. This will not be called ifIndex.QueryPlan.supportsReplicaFilteringProtection(RowFilter)returns false.- Specified by:
filterReplicaFilteringProtectionin interfaceIndex.Searcher- Returns:
- filtered response that satisfied query conditions
-
search
public UnfilteredPartitionIterator search(ReadExecutionController executionController) throws RequestTimeoutException - Specified by:
searchin interfaceIndex.Searcher- Parameters:
executionController- the collection of OpOrder.Groups which the ReadCommand is being performed under.- Returns:
- partitions from the base table matching the criteria of the search.
- Throws:
RequestTimeoutException
-