Module org.elasticsearch.server
Interface RandomAccessBinarizedByteVectorValues
- All Superinterfaces:
org.apache.lucene.util.hnsw.RandomAccessVectorValues
,org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
- All Known Implementing Classes:
OffHeapBinarizedVectorValues
,OffHeapBinarizedVectorValues.DenseOffHeapVectorValues
public interface RandomAccessBinarizedByteVectorValues
extends org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
Copied from Lucene, replace with Lucene's implementation sometime after Lucene 10
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes, org.apache.lucene.util.hnsw.RandomAccessVectorValues.Floats
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
default int
float[]
float
getCentroidDistance
(int vectorOrd) Returns the centroid distance for the vectordefault float
float
getNormOC
(int targetOrd) Returns the norm of the target vector w the centroid corrective factor for the given vector ordinalfloat
getODotC
(int targetOrd) Returns the target vector dot product the centroid corrective factor for the given vector ordinalfloat
getOOQ
(int targetOrd) Returns OOQ corrective factor for the given vector ordinalfloat
getVectorMagnitude
(int vectorOrd) Returns the vector magnitude for the vectordefault float
maxX1()
default float
Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, size
Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
getVectorByteLength, vectorValue
-
Method Details
-
getCentroidDistance
Returns the centroid distance for the vector- Throws:
IOException
-
getVectorMagnitude
Returns the vector magnitude for the vector- Throws:
IOException
-
getOOQ
Returns OOQ corrective factor for the given vector ordinal- Throws:
IOException
-
getNormOC
Returns the norm of the target vector w the centroid corrective factor for the given vector ordinal- Throws:
IOException
-
getODotC
Returns the target vector dot product the centroid corrective factor for the given vector ordinal- Throws:
IOException
-
getQuantizer
BinaryQuantizer getQuantizer()- Returns:
- the quantizer used to quantize the vectors
-
discretizedDimensions
default int discretizedDimensions() -
sqrtDimensions
default float sqrtDimensions() -
maxX1
default float maxX1() -
getCentroid
- Returns:
- coarse grained centroids for the vectors
- Throws:
IOException
-
copy
- Specified by:
copy
in interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues
- Specified by:
copy
in interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
- Throws:
IOException
-
getCentroidDP
- Throws:
IOException
-