Interface SegmentWriter
- All Known Implementing Classes:
LiteralIndexWriter,NumericIndexWriter
public interface SegmentWriter
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of rows written to the segmentwriteCompleteSegment(Iterator<IndexEntry> indexEntryIterator) Appends a set of terms and associated postings to their respective overall SSTable component files.
-
Method Details
-
writeCompleteSegment
SegmentMetadata.ComponentMetadataMap writeCompleteSegment(Iterator<IndexEntry> indexEntryIterator) throws IOException Appends a set of terms and associated postings to their respective overall SSTable component files.- Parameters:
indexEntryIterator- 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
long getNumberOfRows()Returns the number of rows written to the segment- Returns:
- the number of rows
-