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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInt7SQVectorScorerSupplier(org.apache.lucene.store.IndexInput input, org.apache.lucene.util.quantization.LegacyQuantizedByteVectorValues values, float scoreCorrectionConstant) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract floatbulkScoreFromSegment(MemorySegment addresses, MemorySegment query, float queryOffsetValue, MemorySegment scores, int numNodes) protected final voidcheckOrdinal(int ord) org.apache.lucene.util.quantization.LegacyQuantizedByteVectorValuesget()protected abstract floatscoreFromSegments(MemorySegment a, float aOffset, MemorySegment b, float bOffset) 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.IndexInput input, org.apache.lucene.util.quantization.LegacyQuantizedByteVectorValues values, float scoreCorrectionConstant)
-
-
Method Details
-
checkOrdinal
protected final void checkOrdinal(int ord) -
scoreFromSegments
protected abstract float scoreFromSegments(MemorySegment a, float aOffset, MemorySegment b, float bOffset) -
bulkScoreFromSegment
protected abstract float bulkScoreFromSegment(MemorySegment addresses, MemorySegment query, float queryOffsetValue, MemorySegment 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.LegacyQuantizedByteVectorValues get()- Specified by:
getin interfaceQuantizedByteVectorValuesAccess
-