Module org.elasticsearch.simdvec
Class Int7uOSQVectorScorerSupplier.MaxInnerProductSupplier
java.lang.Object
org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier
org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier.MaxInnerProductSupplier
- All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
- Enclosing class:
Int7uOSQVectorScorerSupplier
public static final class Int7uOSQVectorScorerSupplier.MaxInnerProductSupplier
extends Int7uOSQVectorScorerSupplier
MaxInnerProductSupplier relies on preview features of the Java platform:
MaxInnerProductSupplierrefers to one or more preview APIs:MemorySegment.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier
Int7uOSQVectorScorerSupplier.DotProductSupplier, Int7uOSQVectorScorerSupplier.EuclideanSupplier, Int7uOSQVectorScorerSupplier.MaxInnerProductSupplier, Int7uOSQVectorScorerSupplier.QueryContext -
Field Summary
Fields inherited from class org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier
dims, input, maxOrd, values -
Constructor Summary
ConstructorsConstructorDescriptionMaxInnerProductSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatapplyCorrections(float rawScore, int ord, Int7uOSQVectorScorerSupplier.QueryContext query) protected floatapplyCorrectionsBulk(MemorySegmentPREVIEW scoreSeg, MemorySegmentPREVIEW ordinalsSeg, int numNodes, Int7uOSQVectorScorerSupplier.QueryContext query) org.apache.lucene.util.hnsw.RandomVectorScorerSuppliercopy()Methods inherited from class org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier
bulkScoreFromOrds, checkOrdinal, computeBulk, createQueryContext, get, getVectorPitch, scoreFromOrds, scorer
-
Constructor Details
-
MaxInnerProductSupplier
public MaxInnerProductSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values)
-
-
Method Details
-
copy
- Throws:
IOException
-
applyCorrections
protected float applyCorrections(float rawScore, int ord, Int7uOSQVectorScorerSupplier.QueryContext query) throws IOException - Specified by:
applyCorrectionsin classInt7uOSQVectorScorerSupplier- Throws:
IOException
-
applyCorrectionsBulk
protected float applyCorrectionsBulk(MemorySegmentPREVIEW scoreSeg, MemorySegmentPREVIEW ordinalsSeg, int numNodes, Int7uOSQVectorScorerSupplier.QueryContext query) throws IOException - Specified by:
applyCorrectionsBulkin classInt7uOSQVectorScorerSupplier- Throws:
IOException
-
MaxInnerProductSupplierwhen preview features are enabled.