Package org.apache.lucene.expressions
Class ExpressionFunctionValues
- java.lang.Object
-
- org.apache.lucene.search.DoubleValues
-
- org.apache.lucene.expressions.ExpressionFunctionValues
-
class ExpressionFunctionValues extends DoubleValues
ADoubleValueswhich evaluates an expression
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleancomputed(package private) intcurrentDoc(package private) doublecurrentValue(package private) Expressionexpression(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 booleanadvanceExact(int doc)Advance this instance to the given document iddoubledoubleValue()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
-
currentValue
double currentValue
-
currentDoc
int currentDoc
-
computed
boolean computed
-
-
Constructor Detail
-
ExpressionFunctionValues
ExpressionFunctionValues(Expression expression, DoubleValues[] functionValues)
-
-
Method Detail
-
advanceExact
public boolean advanceExact(int doc) throws java.io.IOExceptionDescription copied from class:DoubleValuesAdvance this instance to the given document id- Specified by:
advanceExactin classDoubleValues- Returns:
- true if there is a value for this document
- Throws:
java.io.IOException
-
doubleValue
public double doubleValue()
Description copied from class:DoubleValuesGet the double value for the current document- Specified by:
doubleValuein classDoubleValues
-
-