Module org.elasticsearch.simdvec
Class ByteVectorScorerSupplier
java.lang.Object
org.elasticsearch.simdvec.internal.ByteVectorScorerSupplier
- All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
- Direct Known Subclasses:
ByteVectorScorerSupplier.CosineSupplier,ByteVectorScorerSupplier.DotProductSupplier,ByteVectorScorerSupplier.EuclideanSupplier,ByteVectorScorerSupplier.MaxInnerProductSupplier
public abstract sealed class ByteVectorScorerSupplier
extends Object
implements org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
permits ByteVectorScorerSupplier.CosineSupplier, ByteVectorScorerSupplier.EuclideanSupplier, ByteVectorScorerSupplier.DotProductSupplier, ByteVectorScorerSupplier.MaxInnerProductSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedByteVectorScorerSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.index.ByteVectorValues values, org.apache.lucene.index.VectorSimilarityFunction fallbackScorer) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidcheckOrdinal(int ord) 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
-
ByteVectorScorerSupplier
protected ByteVectorScorerSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.index.ByteVectorValues values, org.apache.lucene.index.VectorSimilarityFunction fallbackScorer)
-
-
Method Details
-
checkOrdinal
protected final void checkOrdinal(int ord) -
scorer
public org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer scorer()- Specified by:
scorerin interfaceorg.apache.lucene.util.hnsw.RandomVectorScorerSupplier
-