Class VectorFieldFunction
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.valuesource.VectorFieldFunction
-
public abstract class VectorFieldFunction extends FunctionValues
An implementation for retrievingFunctionValuesinstances for knn vectors fields.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueSourcevalueSource
-
Constructor Summary
Constructors Modifier Constructor Description protectedVectorFieldFunction(ValueSource valueSource)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanexists(int doc)Returns true if there is a value for this documentprotected abstract DocIdSetIteratorgetVectorIterator()StringtoString(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 Detail
-
valueSource
protected final ValueSource valueSource
-
-
Constructor Detail
-
VectorFieldFunction
protected VectorFieldFunction(ValueSource valueSource)
-
-
Method Detail
-
getVectorIterator
protected abstract DocIdSetIterator getVectorIterator()
-
toString
public String toString(int doc) throws IOException
- Specified by:
toStringin classFunctionValues- Throws:
IOException
-
exists
public boolean exists(int doc) throws IOExceptionDescription copied from class:FunctionValuesReturns true if there is a value for this document- Overrides:
existsin classFunctionValues- Throws:
IOException
-
-