Class LiteralIndexSegmentTermsReader
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.segment.LiteralIndexSegmentTermsReader
- All Implemented Interfaces:
Closeable,AutoCloseable
Synchronous reader of terms dictionary and postings lists to produce a
PostingList with matching row ids.
exactMatch(ByteComparable, QueryEventListener.TrieIndexEventListener, QueryContext) does:
LiteralIndexSegmentTermsReader.TermQuery.lookupPostingsOffset(ByteComparable): does term dictionary lookup to find the posting list file positionLiteralIndexSegmentTermsReader.TermQuery.getPostingsReader(long): reads posting list block summary and initializes posting read which reads the first block of the posting list into memory
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLiteralIndexSegmentTermsReader(IndexIdentifier indexIdentifier, FileHandle termsData, FileHandle postingLists, long root, long termsFooterPointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()exactMatch(ByteComparable term, QueryEventListener.TrieIndexEventListener perQueryEventListener, QueryContext context)
-
Constructor Details
-
LiteralIndexSegmentTermsReader
public LiteralIndexSegmentTermsReader(IndexIdentifier indexIdentifier, FileHandle termsData, FileHandle postingLists, long root, long termsFooterPointer) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
exactMatch
public PostingList exactMatch(ByteComparable term, QueryEventListener.TrieIndexEventListener perQueryEventListener, QueryContext context)
-