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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ReadCommand
command()
Returns theReadCommand
for which this searcher has been created.default PartitionIterator
filterReplicaFilteringProtection(PartitionIterator fullResponse)
Replica filtering protection may fetch data that doesn't match query conditions.UnfilteredPartitionIterator
search(ReadExecutionController executionController)
-
-
-
Method Detail
-
command
ReadCommand command()
Returns theReadCommand
for which this searcher has been created.- Returns:
- the base read command
-
search
UnfilteredPartitionIterator search(ReadExecutionController executionController)
- 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
default PartitionIterator filterReplicaFilteringProtection(PartitionIterator fullResponse)
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
-
-