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 TypeMethodDescriptionbooleanadvanceExact(int doc) Advance this instance to the given document iddoubleGet 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
Description 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:
IOException
-
doubleValue
public double doubleValue()Description copied from class:DoubleValuesGet the double value for the current document- Specified by:
doubleValuein classDoubleValues
-