BlockTermsWriter

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)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open fun merge(mergeState: MergeState, norms: NormsProducer?)

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
open override fun write(fields: Fields, norms: NormsProducer?)

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.