Class VectorScorerSupplierAdapter

java.lang.Object
org.elasticsearch.vec.VectorScorerSupplierAdapter
All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier

public final class VectorScorerSupplierAdapter extends Object implements org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
An adapter between VectorScorer and RandomVectorScorerSupplier.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier

    org.apache.lucene.util.hnsw.RandomVectorScorerSupplier.ByteScoringSupplier, org.apache.lucene.util.hnsw.RandomVectorScorerSupplier.FloatScoringSupplier
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
     
    org.apache.lucene.util.hnsw.RandomVectorScorer
    scorer(int ord)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VectorScorerSupplierAdapter

      public VectorScorerSupplierAdapter(VectorScorer scorer)
  • Method Details

    • scorer

      public org.apache.lucene.util.hnsw.RandomVectorScorer scorer(int ord) throws IOException
      Specified by:
      scorer in interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
      Throws:
      IOException
    • copy

      public org.apache.lucene.util.hnsw.RandomVectorScorerSupplier copy() throws IOException
      Specified by:
      copy in interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
      Throws:
      IOException