Module org.elasticsearch.server
Interface RandomAccessBinarizedByteVectorValues
- All Superinterfaces:
org.apache.lucene.util.hnsw.RandomAccessVectorValues,org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
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 intfloat[]floatgetCentroidDistance(int vectorOrd) Returns the centroid distance for the vectordefault floatfloatgetNormOC(int targetOrd) Returns the norm of the target vector w the centroid corrective factor for the given vector ordinalfloatgetODotC(int targetOrd) Returns the target vector dot product the centroid corrective factor for the given vector ordinalfloatgetOOQ(int targetOrd) Returns OOQ corrective factor for the given vector ordinalfloatgetVectorMagnitude(int vectorOrd) Returns the vector magnitude for the vectordefault floatmaxX1()default floatMethods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, sizeMethods 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:
copyin interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues- Specified by:
copyin interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes- Throws:
IOException
-
getCentroidDP
- Throws:
IOException
-