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 void
checkField
(LeafReader in, String field, VectorEncoding expectedEncoding) Checks the Vector Encoding of a fieldboolean
exists
(int doc) Returns true if there is a value for this documentprotected abstract DocIdSetIterator
toString
(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:
toString
in classFunctionValues
- Throws:
IOException
-
exists
Description copied from class:FunctionValues
Returns true if there is a value for this document- Overrides:
exists
in classFunctionValues
- Throws:
IOException
-
checkField
Checks the Vector Encoding of a field- Throws:
IllegalStateException
- iffield
exists, but was not indexed with vectors.IllegalStateException
- iffield
has vectors, but using a different encoding
-