Module org.elasticsearch.simdvec
Class Int7SQVectorScorerSupplier
java.lang.Object
org.elasticsearch.simdvec.internal.Int7SQVectorScorerSupplier
- All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier,QuantizedByteVectorValuesAccess
- Direct Known Subclasses:
Int7SQVectorScorerSupplier.DotProductSupplier,Int7SQVectorScorerSupplier.EuclideanSupplier,Int7SQVectorScorerSupplier.MaxInnerProductSupplier
public abstract sealed class Int7SQVectorScorerSupplier
extends Object
implements org.apache.lucene.util.hnsw.RandomVectorScorerSupplier, QuantizedByteVectorValuesAccess
permits Int7SQVectorScorerSupplier.EuclideanSupplier, Int7SQVectorScorerSupplier.DotProductSupplier, Int7SQVectorScorerSupplier.MaxInnerProductSupplier
Int7SQVectorScorerSupplier relies on preview features of the Java platform:
Int7SQVectorScorerSupplierrefers 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 ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInt7SQVectorScorerSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.util.quantization.QuantizedByteVectorValues values, float scoreCorrectionConstant, org.apache.lucene.util.quantization.ScalarQuantizedVectorSimilarity fallbackScorer) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract floatbulkScoreFromSegment(MemorySegmentPREVIEW vectors, int vectorLength, int vectorPitch, int firstOrd, MemorySegmentPREVIEW ordinals, MemorySegmentPREVIEW scores, int numNodes) protected final voidcheckOrdinal(int ord) org.apache.lucene.util.quantization.QuantizedByteVectorValuesget()org.apache.lucene.util.hnsw.UpdateableRandomVectorScorerscorer()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
copy
-
Constructor Details
-
Int7SQVectorScorerSupplier
protected Int7SQVectorScorerSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.util.quantization.QuantizedByteVectorValues values, float scoreCorrectionConstant, org.apache.lucene.util.quantization.ScalarQuantizedVectorSimilarity fallbackScorer)
-
-
Method Details
-
checkOrdinal
protected final void checkOrdinal(int ord) -
bulkScoreFromSegment
protected abstract float bulkScoreFromSegment(MemorySegmentPREVIEW vectors, int vectorLength, int vectorPitch, int firstOrd, MemorySegmentPREVIEW ordinals, MemorySegmentPREVIEW scores, int numNodes) -
scorer
public org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer scorer()- Specified by:
scorerin interfaceorg.apache.lucene.util.hnsw.RandomVectorScorerSupplier
-
get
public org.apache.lucene.util.quantization.QuantizedByteVectorValues get()- Specified by:
getin interfaceQuantizedByteVectorValuesAccess
-
Int7SQVectorScorerSupplierwhen preview features are enabled.