Class CassandraIndexSearcher
java.lang.Object
org.apache.cassandra.index.internal.CassandraIndexSearcher
- All Implemented Interfaces:
Index.Searcher
- Direct Known Subclasses:
CompositesSearcher,KeysSearcher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCassandraIndexSearcher(ReadCommand command, RowFilter.Expression expression, CassandraIndex index) -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns theReadCommandfor which this searcher has been created.protected Clustering<?>makeIndexClustering(ByteBuffer rowKey, Clustering<?> clustering) protected abstract UnfilteredPartitionIteratorqueryDataFromIndex(DecoratedKey indexKey, RowIterator indexHits, ReadCommand command, ReadExecutionController executionController) search(ReadExecutionController executionController) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.index.Index.Searcher
filterReplicaFilteringProtection
-
Field Details
-
index
-
command
-
-
Constructor Details
-
CassandraIndexSearcher
public CassandraIndexSearcher(ReadCommand command, RowFilter.Expression expression, CassandraIndex index)
-
-
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
-
search
- 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.
-
makeIndexClustering
-
queryDataFromIndex
protected abstract UnfilteredPartitionIterator queryDataFromIndex(DecoratedKey indexKey, RowIterator indexHits, ReadCommand command, ReadExecutionController executionController)
-