BlockTermsWriter
class BlockTermsWriter(termsIndexWriter: TermsIndexWriterBase, state: SegmentWriteState, postingsWriter: PostingsWriterBase) : FieldsConsumer
Writes terms dict, block-encoding (column stride) each term's metadata for each set of terms between two index terms.
Constructors
Link copied to clipboard
constructor(termsIndexWriter: TermsIndexWriterBase, state: SegmentWriteState, postingsWriter: PostingsWriterBase)
Functions
Link copied to clipboard
Merges in the fields from the readers in mergeState. The default implementation skips and maps around deleted documents, and calls .write. Implementations can override this method for more sophisticated merging (bulk-byte copying, etc).
Link copied to clipboard
Write all fields, terms and postings. This the "pull" API, allowing you to iterate more than once over the postings, somewhat analogous to using a DOM API to traverse an XML tree.