Class InputExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.InputExpression
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ExecutionContext context) booleancom.yahoo.document.DataTypegetOutputType(TypeContext context) Returns the output type this is must produce (since it is part of a statement expression), or null if this is not set or there is no output produced at the end of the statement.inthashCode()booleanReturns whether this expression requires an input value.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.Expression
convertChildren, doResolve, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, execute, fromString, fromString, getInputType, 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, selectMembers
-
Constructor Details
-
InputExpression
-
-
Method Details
-
requiresInput
public boolean requiresInput()Description copied from class:ExpressionReturns whether this expression requires an input value.- Overrides:
requiresInputin classExpression
-
getFieldName
-
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
-
getOutputType
Description copied from class:ExpressionReturns the output type this is must produce (since it is part of a statement expression), or null if this is not set or there is no output produced at the end of the statement.- Overrides:
getOutputTypein classExpression
-
toString
-
equals
-
hashCode
public int hashCode()
-