KnnFieldVectorsWriter

Vectors' writer for a field

Parameters

an array type; the type of vectors to be written

Inheritors

Properties

Link copied to clipboard

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

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 ramBytesUsed(): Long

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