Module org.elasticsearch.simdvec
Class Int7SQVectorScorerSupplier.MaxInnerProductSupplier
java.lang.Object
org.elasticsearch.simdvec.internal.Int7SQVectorScorerSupplier
org.elasticsearch.simdvec.internal.Int7SQVectorScorerSupplier.MaxInnerProductSupplier
- All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier,QuantizedByteVectorValuesAccess
- Enclosing class:
Int7SQVectorScorerSupplier
public static final class Int7SQVectorScorerSupplier.MaxInnerProductSupplier
extends Int7SQVectorScorerSupplier
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.Int7SQVectorScorerSupplier
Int7SQVectorScorerSupplier.DotProductSupplier, Int7SQVectorScorerSupplier.EuclideanSupplier, Int7SQVectorScorerSupplier.MaxInnerProductSupplier -
Constructor Summary
ConstructorsConstructorDescriptionMaxInnerProductSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.util.quantization.QuantizedByteVectorValues values, float scoreCorrectionConstant) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatbulkScoreFromSegment(MemorySegmentPREVIEW vectors, int vectorLength, int vectorPitch, int firstOrd, MemorySegmentPREVIEW ordinals, MemorySegmentPREVIEW scores, int numNodes) copy()Methods inherited from class org.elasticsearch.simdvec.internal.Int7SQVectorScorerSupplier
checkOrdinal, get, scorer
-
Constructor Details
-
MaxInnerProductSupplier
public MaxInnerProductSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.util.quantization.QuantizedByteVectorValues values, float scoreCorrectionConstant)
-
-
Method Details
-
bulkScoreFromSegment
protected float bulkScoreFromSegment(MemorySegmentPREVIEW vectors, int vectorLength, int vectorPitch, int firstOrd, MemorySegmentPREVIEW ordinals, MemorySegmentPREVIEW scores, int numNodes) - Specified by:
bulkScoreFromSegmentin classInt7SQVectorScorerSupplier
-
copy
-
MaxInnerProductSupplierwhen preview features are enabled.