TermVectorsConsumerPerField

Constructors

Link copied to clipboard
constructor(invertState: FieldInvertState, termsHash: TermVectorsConsumer, fieldInfo: FieldInfo)

Types

Properties

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

Functions

Link copied to clipboard
fun add(termBytes: BytesRef, docID: Int)

Called once per inverted token. This is the primary entry point (for first TermsHash); postings use this API.

Link copied to clipboard
open override fun addTerm(termID: Int, docID: Int)

Called when a previously seen term is seen again.

Link copied to clipboard
open operator override fun compareTo(other: TermsHashPerField): Int
Link copied to clipboard

Creates a new postings array of the specified size.

Link copied to clipboard
open override fun finish()

Called once per field per document if term vectors are enabled, to write the vectors to RAMOutputStream, which is then quickly flushed to the real term vectors files in the Directory.

Link copied to clipboard
Link copied to clipboard

Returns the sorted term IDs. .sortTerms must be called before

Link copied to clipboard
fun initReader(reader: ByteSliceReader, termID: Int, stream: Int)
Link copied to clipboard
open override fun newPostingsArray()

Called when the postings array is initialized or resized.

Link copied to clipboard
open override fun newTerm(termID: Int, docID: Int)

Called when a term is seen for the first time.

Link copied to clipboard
Link copied to clipboard
fun reset()
Link copied to clipboard
fun sortTerms()

Collapse the hash table and sort in-place; also sets this.sortedTermIDs to the results This method must not be called twice unless .reset or .reinitHash was called.

Link copied to clipboard
open override fun start(field: IndexableField?, first: Boolean): Boolean

Start adding a new field instance; first is true if this is the first time this field name was seen in the document.

Link copied to clipboard
fun writeByte(stream: Int, b: Byte)
Link copied to clipboard
fun writeBytes(stream: Int, b: ByteArray, offset: Int, len: Int)
Link copied to clipboard
Link copied to clipboard
fun writeVInt(stream: Int, i: Int)