Class BinarizedByteVectorValues

java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.elasticsearch.index.codec.vectors.es816.BinarizedByteVectorValues

public abstract class BinarizedByteVectorValues extends org.apache.lucene.search.DocIdSetIterator
Copied from Lucene, replace with Lucene's implementation sometime after Lucene 10
  • Field Summary

    Fields inherited from class org.apache.lucene.search.DocIdSetIterator

    NO_MORE_DOCS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final long
     
    abstract int
    Return the dimension of the vectors
    abstract float[]
     
    abstract org.apache.lucene.search.VectorScorer
    scorer(float[] query)
    Return a VectorScorer for the given query vector.
    abstract int
    Return the number of vectors for this field.
    abstract byte[]
     

    Methods inherited from class org.apache.lucene.search.DocIdSetIterator

    advance, all, docID, empty, nextDoc, range, slowAdvance

    Methods inherited from class java.lang.Object

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

    • BinarizedByteVectorValues

      public BinarizedByteVectorValues()
  • Method Details

    • getCorrectiveTerms

      public abstract float[] getCorrectiveTerms()
    • vectorValue

      public abstract byte[] vectorValue() throws IOException
      Throws:
      IOException
    • dimension

      public abstract int dimension()
      Return the dimension of the vectors
    • size

      public abstract int size()
      Return the number of vectors for this field.
      Returns:
      the number of vectors returned by this iterator
    • cost

      public final long cost()
      Specified by:
      cost in class org.apache.lucene.search.DocIdSetIterator
    • scorer

      public abstract org.apache.lucene.search.VectorScorer scorer(float[] query) throws IOException
      Return a VectorScorer for the given query vector.
      Parameters:
      query - the query vector
      Returns:
      a VectorScorer instance or null
      Throws:
      IOException