BlockTermsReader

Handles a terms dict, but decouples all details of doc/freqs/positions reading to an instance of PostingsReaderBase. This class is reusable for codecs that use a different format for docs/freqs/positions (though codecs are also free to make their own terms dict impl).

This class also interacts with an instance of TermsIndexReaderBase, to abstract away the specific implementation of the terms dict index.

Constructors

Link copied to clipboard
constructor(indexReader: TermsIndexReaderBase, postingsReader: PostingsReaderBase, state: SegmentReadState)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun checkIntegrity()

Checks consistency of this reader.

Link copied to clipboard
open override fun close()
Link copied to clipboard
open operator override fun iterator(): MutableIterator<String>

Returns an iterator that will step through all fields names. This will not return null.

Link copied to clipboard
open override fun size(): Int

Returns the number of fields or -1 if the number of distinct field names is unknown. If >= 0, .iterator will return as many field names.

Link copied to clipboard
open override fun terms(field: String?): Terms?

Get the Terms for this field. This will return null if the field does not exist.

Link copied to clipboard
open override fun toString(): String