Lucene101PostingsReader

Concrete class that reads docId(maybe frq,pos,offset,payloads) list with postings format.

Constructors

Link copied to clipboard
constructor(state: SegmentReadState)

Types

Link copied to clipboard
object Companion
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 override fun decodeTerm(in: DataInput, fieldInfo: FieldInfo, _termState: BlockTermState, absolute: Boolean)

Actually decode metadata for next term

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

Return a ImpactsEnum that computes impacts with scorer.

open override 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
open override 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
open override fun newTermState(): BlockTermState

Return a newly created empty TermState

Link copied to clipboard
open override fun postings(fieldInfo: FieldInfo, termState: BlockTermState, reuse: PostingsEnum?, flags: Int): PostingsEnum

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

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