Class CassandraIndexSearcher
- java.lang.Object
-
- org.apache.cassandra.index.internal.CassandraIndexSearcher
-
- All Implemented Interfaces:
Index.Searcher
- Direct Known Subclasses:
CompositesSearcher
,KeysSearcher
public abstract class CassandraIndexSearcher extends java.lang.Object implements Index.Searcher
-
-
Field Summary
Fields Modifier and Type Field Description protected ReadCommand
command
protected CassandraIndex
index
-
Constructor Summary
Constructors Constructor Description CassandraIndexSearcher(ReadCommand command, RowFilter.Expression expression, CassandraIndex index)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ReadCommand
command()
Returns theReadCommand
for which this searcher has been created.protected Clustering<?>
makeIndexClustering(java.nio.ByteBuffer rowKey, Clustering<?> clustering)
protected abstract UnfilteredPartitionIterator
queryDataFromIndex(DecoratedKey indexKey, RowIterator indexHits, ReadCommand command, ReadExecutionController executionController)
UnfilteredPartitionIterator
search(ReadExecutionController executionController)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.index.Index.Searcher
filterReplicaFilteringProtection
-
-
-
-
Field Detail
-
index
protected final CassandraIndex index
-
command
protected final ReadCommand command
-
-
Constructor Detail
-
CassandraIndexSearcher
public CassandraIndexSearcher(ReadCommand command, RowFilter.Expression expression, CassandraIndex index)
-
-
Method Detail
-
command
public ReadCommand command()
Description copied from interface:Index.Searcher
Returns theReadCommand
for which this searcher has been created.- Specified by:
command
in interfaceIndex.Searcher
- Returns:
- the base read command
-
search
public UnfilteredPartitionIterator search(ReadExecutionController executionController)
- Specified by:
search
in 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
protected Clustering<?> makeIndexClustering(java.nio.ByteBuffer rowKey, Clustering<?> clustering)
-
queryDataFromIndex
protected abstract UnfilteredPartitionIterator queryDataFromIndex(DecoratedKey indexKey, RowIterator indexHits, ReadCommand command, ReadExecutionController executionController)
-
-