Package org.apache.lucene.expressions
Class ExpressionFunctionValues
- java.lang.Object
-
- org.apache.lucene.search.DoubleValues
-
- org.apache.lucene.expressions.ExpressionFunctionValues
-
class ExpressionFunctionValues extends DoubleValues
ADoubleValues
which evaluates an expression
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Expression
expression
(package private) DoubleValues[]
functionValues
-
Fields inherited from class org.apache.lucene.search.DoubleValues
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ExpressionFunctionValues(Expression expression, DoubleValues[] functionValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
advanceExact(int doc)
Advance this instance to the given document iddouble
doubleValue()
Get the double value for the current document-
Methods inherited from class org.apache.lucene.search.DoubleValues
withDefault
-
-
-
-
Field Detail
-
expression
final Expression expression
-
functionValues
final DoubleValues[] functionValues
-
-
Constructor Detail
-
ExpressionFunctionValues
ExpressionFunctionValues(Expression expression, DoubleValues[] functionValues)
-
-
Method Detail
-
advanceExact
public boolean advanceExact(int doc) throws java.io.IOException
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
- Throws:
java.io.IOException
-
doubleValue
public double doubleValue()
Description copied from class:DoubleValues
Get the double value for the current document- Specified by:
doubleValue
in classDoubleValues
-
-