Package org.apache.lucene.expressions
Class ExpressionFunctionValues
java.lang.Object
org.apache.lucene.search.DoubleValues
org.apache.lucene.expressions.ExpressionFunctionValues
A
DoubleValues
which evaluates an expression-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
(package private) int
(package private) double
(package private) final Expression
(package private) final DoubleValues[]
Fields inherited from class org.apache.lucene.search.DoubleValues
EMPTY
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionFunctionValues
(Expression expression, DoubleValues[] functionValues) -
Method Summary
Modifier and TypeMethodDescriptionboolean
advanceExact
(int doc) Advance this instance to the given document iddouble
Get the double value for the current documentMethods inherited from class org.apache.lucene.search.DoubleValues
withDefault
-
Field Details
-
expression
-
functionValues
-
currentValue
double currentValue -
currentDoc
int currentDoc -
computed
boolean computed
-
-
Constructor Details
-
ExpressionFunctionValues
ExpressionFunctionValues(Expression expression, DoubleValues[] functionValues)
-
-
Method Details
-
advanceExact
public boolean advanceExact(int doc) Description copied from class:DoubleValues
Advance this instance to the given document id- Specified by:
advanceExact
in classDoubleValues
- Returns:
- true if there is a value for this document
-
doubleValue
Description copied from class:DoubleValues
Get the double value for the current document- Specified by:
doubleValue
in classDoubleValues
- Throws:
IOException
-