Class LiteralIndexWriter
java.lang.Object
org.apache.cassandra.index.sai.disk.v1.trie.LiteralIndexWriter
- All Implemented Interfaces:
SegmentWriter
Builds an on-disk inverted index structure: terms dictionary and postings lists.
-
Constructor Summary
ConstructorsConstructorDescriptionLiteralIndexWriter(IndexDescriptor indexDescriptor, IndexIdentifier indexIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of rows written to the segmentwriteCompleteSegment(Iterator<IndexEntry> iterator) Appends a set of terms and associated postings to their respective overall SSTable component files.
-
Constructor Details
-
LiteralIndexWriter
-
-
Method Details
-
writeCompleteSegment
public SegmentMetadata.ComponentMetadataMap writeCompleteSegment(Iterator<IndexEntry> iterator) throws IOException Description copied from interface:SegmentWriterAppends a set of terms and associated postings to their respective overall SSTable component files.- Specified by:
writeCompleteSegmentin interfaceSegmentWriter- Parameters:
iterator- anIteratorofIndexEntrys sorted in term order.- Returns:
- metadata describing the location of this inverted index in the overall SSTable terms and postings component files
- Throws:
IOException
-
getNumberOfRows
public long getNumberOfRows()Description copied from interface:SegmentWriterReturns the number of rows written to the segment- Specified by:
getNumberOfRowsin interfaceSegmentWriter- Returns:
- the number of rows
-