Interface SegmentWriter

All Known Implementing Classes:
LiteralIndexWriter, NumericIndexWriter

public interface SegmentWriter
  • 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 - an Iterator of IndexEntrys 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