Class LiteralIndexSegmentSearcher
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.segment.IndexSegmentSearcher
org.apache.cassandra.index.sai.disk.v1.segment.LiteralIndexSegmentSearcher
- All Implemented Interfaces:
Closeable,AutoCloseable,SegmentOrdering
Executes
Expressions against the trie-based terms dictionary for an individual index segment.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longsearch(Expression expression, AbstractBounds<PartitionPosition> keyRange, QueryContext queryContext) Search on-disk index synchronously.toString()Methods inherited from class org.apache.cassandra.index.sai.disk.v1.segment.IndexSegmentSearcher
open, orderByMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.index.sai.disk.v1.segment.SegmentOrdering
orderResultsBy
-
Method Details
-
indexFileCacheSize
public long indexFileCacheSize()- Specified by:
indexFileCacheSizein classIndexSegmentSearcher- Returns:
- memory usage of underlying on-disk data structure
-
search
public KeyRangeIterator search(Expression expression, AbstractBounds<PartitionPosition> keyRange, QueryContext queryContext) throws IOException Description copied from class:IndexSegmentSearcherSearch on-disk index synchronously.- Specified by:
searchin classIndexSegmentSearcher- Parameters:
expression- to filter on disk indexqueryContext- to track per sstable cache and per query metrics- Returns:
KeyRangeIteratorwith matches for the given expression- Throws:
IOException
-
toString
-
close
public void close()
-