Class ArithmeticExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.CompositeExpression
com.yahoo.vespa.indexinglanguage.expressions.ArithmeticExpression
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionArithmeticExpression(Expression left, ArithmeticExpression.Operator op, Expression right) -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalasBigDecimal(com.yahoo.document.datatypes.NumericFieldValue value) convertChildren(ExpressionConverter converter) Returns an expression where the children of this has been converted using the given converter.protected voiddoExecute(ExecutionContext context) booleaninthashCode()booleanReturns whether this expression requires an input value.voidselectMembers(com.yahoo.vespa.objects.ObjectPredicate predicate, com.yahoo.vespa.objects.ObjectOperation operation) com.yahoo.document.DataTypesetInputType(com.yahoo.document.DataType inputType, TypeContext context) Sets the input type of this and returns the resulting output type, or null if it cannot be uniquely determined.com.yahoo.document.DataTypesetOutputType(com.yahoo.document.DataType outputType, TypeContext context) Sets the output type of this and returns the resulting input type, or null if it cannot be uniquely determined.toString()Methods inherited from class com.yahoo.vespa.indexinglanguage.expressions.CompositeExpression
toScriptBlockMethods inherited from class com.yahoo.vespa.indexinglanguage.expressions.Expression
doResolve, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, fromString, fromString, getInputType, getOutputType, getOutputType, isMutating, leastGeneralNonNullOf, leastGeneralOf, mostGeneralOf, newInstance, requireOutputType, resolve, resolve, resolve, resolve, resolve, resolve, resolve, resolve, resolve, setInputType, setOutputType, setStatementOutputMethods inherited from class com.yahoo.vespa.objects.Selectable
select, select
-
Constructor Details
-
ArithmeticExpression
-
-
Method Details
-
requiresInput
public boolean requiresInput()Description copied from class:ExpressionReturns whether this expression requires an input value.- Overrides:
requiresInputin classExpression
-
getLeftHandSide
-
getOperator
-
getRightHandSide
-
convertChildren
Description copied from class:ExpressionReturns an expression where the children of this has been converted using the given converter. This default implementation returns this as it has no children.- Specified by:
convertChildrenin classCompositeExpression
-
setInputType
public com.yahoo.document.DataType setInputType(com.yahoo.document.DataType inputType, TypeContext context) Description copied from class:ExpressionSets the input type of this and returns the resulting output type, or null if it cannot be uniquely determined. Subtypes may implement this by calling setInputType(inputType, requiredType, VerificationContext context).- Overrides:
setInputTypein classExpression
-
setOutputType
public com.yahoo.document.DataType setOutputType(com.yahoo.document.DataType outputType, TypeContext context) Description copied from class:ExpressionSets the output type of this and returns the resulting input type, or null if it cannot be uniquely determined. Subtypes implement this by calling setOutputType(outputType, requiredType, VerificationContext context).- Overrides:
setOutputTypein classExpression
-
doExecute
- Specified by:
doExecutein classExpression
-
toString
-
equals
-
hashCode
public int hashCode() -
asBigDecimal
-
selectMembers
public void selectMembers(com.yahoo.vespa.objects.ObjectPredicate predicate, com.yahoo.vespa.objects.ObjectOperation operation) - Overrides:
selectMembersin classcom.yahoo.vespa.objects.Selectable
-