Module org.elasticsearch.server
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal longcost()abstract intReturn the dimension of the vectorsabstract float[]abstract org.apache.lucene.search.VectorScorerscorer(float[] query) Return aVectorScorerfor the given query vector.abstract intsize()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
-
Constructor Details
-
BinarizedByteVectorValues
public BinarizedByteVectorValues()
-
-
Method Details
-
getCorrectiveTerms
public abstract float[] getCorrectiveTerms() -
vectorValue
- 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:
costin classorg.apache.lucene.search.DocIdSetIterator
-
scorer
Return aVectorScorerfor the given query vector.- Parameters:
query- the query vector- Returns:
- a
VectorScorerinstance or null - Throws:
IOException
-