Package org.apache.cassandra.index
Interface Index.Searcher
- All Known Implementing Classes:
CassandraIndexSearcher,CompositesSearcher,KeysSearcher,SASIIndexSearcher,StorageAttachedIndexSearcher
- Enclosing interface:
- Index
public static interface Index.Searcher
Performs the actual index lookup during execution of a ReadCommand.
An instance performs its query according to the RowFilter.Expression it was created for (see searcherFor)
An Expression is a predicate of the form [column] [operator] [value].
-
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns theReadCommandfor which this searcher has been created.default PartitionIteratorfilterReplicaFilteringProtection(PartitionIterator fullResponse) Replica filtering protection may fetch data that doesn't match query conditions.search(ReadExecutionController executionController)
-
Method Details
-
command
ReadCommand command()Returns theReadCommandfor which this searcher has been created.- Returns:
- the base read command
-
search
- 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.
-
filterReplicaFilteringProtection
Replica 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.- Returns:
- filtered response that satisfied query conditions
-