TermsHash

abstract class TermsHash(intBlockAllocator: IntBlockPool.Allocator, byteBlockAllocator: ByteBlockPool.Allocator, val bytesUsed: Counter, val nextTermsHash: TermsHash?)

This class is passed each token produced by the analyzer on each field during indexing, and it stores these tokens in a hash table, and allocates separate byte streams per token. Consumers of this class, eg FreqProxTermsWriter and TermVectorsConsumer, write their own byte streams under each term.

Inheritors

Constructors

Link copied to clipboard
constructor(intBlockAllocator: IntBlockPool.Allocator, byteBlockAllocator: ByteBlockPool.Allocator, bytesUsed: Counter, nextTermsHash: TermsHash?)

Properties

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
open fun abort()
Link copied to clipboard
abstract fun addField(fieldInvertState: FieldInvertState, fieldInfo: FieldInfo): TermsHashPerField
Link copied to clipboard
open fun finishDocument(docID: Int)
Link copied to clipboard
open fun flush(fieldsToFlush: MutableMap<String, TermsHashPerField>, state: SegmentWriteState, sortMap: Sorter.DocMap?, norms: NormsProducer?)
Link copied to clipboard
fun reset()
Link copied to clipboard
open fun startDocument()