DenseOffHeapVectorValues
class DenseOffHeapVectorValues(dimension: Int, size: Int, slice: IndexInput, byteSize: Int, flatVectorsScorer: FlatVectorsScorer, vectorSimilarityFunction: VectorSimilarityFunction) : OffHeapByteVectorValues
Dense vector values that are stored off-heap. This is the most common case when every doc has a vector.
Constructors
Link copied to clipboard
constructor(dimension: Int, size: Int, slice: IndexInput, byteSize: Int, flatVectorsScorer: FlatVectorsScorer, vectorSimilarityFunction: VectorSimilarityFunction)
Properties
Functions
Link copied to clipboard
Creates a new copy of this KnnVectorValues. This is helpful when you need to access different values at once, to avoid overwriting the underlying vector returned.
Link copied to clipboard
Returns a Bits accepting docs accepted by the argument and having a vector value
Link copied to clipboard
Create an iterator for this instance.
Link copied to clipboard
Return a VectorScorer for the given query vector.
Link copied to clipboard
Return the vector value for the given vector ordinal which must be in 0, size() - 1, otherwise IndexOutOfBoundsException is thrown. The returned array may be shared across calls.