PostingsReaderBase

The core terms dictionaries (BlockTermsReader, BlockTreeTermsReader) interact with a single instance of this class to manage creation of org.gnit.lucenekmp.index.PostingsEnum and org.gnit.lucenekmp.index.ImpactsEnum instances. It provides an IndexInput (termsIn) where this class may read any previously stored data that it had written in its corresponding [ ] at indexing time.

Inheritors

Functions

Link copied to clipboard
abstract fun checkIntegrity()

Checks consistency of this reader.

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun decodeTerm(in: DataInput, fieldInfo: FieldInfo, state: BlockTermState, absolute: Boolean)

Actually decode metadata for next term

Link copied to clipboard
abstract fun impacts(fieldInfo: FieldInfo, state: BlockTermState, flags: Int): ImpactsEnum

Return a ImpactsEnum that computes impacts with scorer.

open fun impacts(fieldInfo: FieldInfo, state: BlockTermState, flags: Int, reuse: ImpactsEnum?): ImpactsEnum

Optional reuse-aware variant of impacts. Implementations may override to reuse platform objects for performance while preserving semantics.

Link copied to clipboard
abstract fun init(termsIn: IndexInput, state: SegmentReadState)

Performs any initialization, such as reading and verifying the header from the provided terms dictionary IndexInput.

Link copied to clipboard

Return a newly created empty TermState

Link copied to clipboard
abstract fun postings(fieldInfo: FieldInfo, state: BlockTermState, reuse: PostingsEnum?, flags: Int): PostingsEnum

Must fully consume state, since after this call that TermState may be reused.