FieldsConsumer

abstract class FieldsConsumer : AutoCloseable

Abstract API that consumes terms, doc, freq, prox, offset and payloads postings. Concrete implementations of this actually do "something" with the postings (write it into the index in a specific format).

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract 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.