Module org.apache.lucene.queries
Class VectorFieldFunction
java.lang.Object
org.apache.lucene.queries.function.FunctionValues
org.apache.lucene.queries.function.valuesource.VectorFieldFunction
An implementation for retrieving
FunctionValues instances for knn vectors fields.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcheckField(LeafReader in, String field, VectorEncoding expectedEncoding) Checks the Vector Encoding of a fieldbooleanexists(int doc) Returns true if there is a value for this documentprotected abstract DocIdSetIteratortoString(int doc) Methods inherited from class org.apache.lucene.queries.function.FunctionValues
boolVal, bytesVal, byteVal, byteVal, byteVectorVal, cost, doubleVal, doubleVal, explain, floatVal, floatVal, floatVectorVal, getRangeScorer, getScorer, getValueFiller, intVal, intVal, longVal, longVal, numOrd, objectVal, ordVal, shortVal, shortVal, strVal, strVal
-
Field Details
-
valueSource
-
lastDocID
int lastDocID
-
-
Constructor Details
-
VectorFieldFunction
-
-
Method Details
-
getVectorIterator
-
toString
- Specified by:
toStringin classFunctionValues- Throws:
IOException
-
exists
Description copied from class:FunctionValuesReturns true if there is a value for this document- Overrides:
existsin classFunctionValues- Throws:
IOException
-
checkField
Checks the Vector Encoding of a field- Throws:
IllegalStateException- iffieldexists, but was not indexed with vectors.IllegalStateException- iffieldhas vectors, but using a different encoding
-