FlatFieldVectorsWriter

Vectors' writer for a field

Parameters

an array type; the type of vectors to be written

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).

Link copied to clipboard
Link copied to clipboard
abstract val isFinished: Boolean
Link copied to clipboard
abstract val vectors: MutableList<T>

Functions

Link copied to clipboard
abstract fun addValue(docID: Int, vectorValue: T)

Add new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.

Link copied to clipboard
abstract fun copyValue(vectorValue: T): T

Used to copy values being indexed to internal storage.

Link copied to clipboard
abstract fun finish()

indicates that this writer is done and no new vectors are allowed to be added

Link copied to clipboard
abstract fun ramBytesUsed(): Long

Return the memory usage of this object in bytes. Negative values are illegal.