Class OutputExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.OutputExpression
- Direct Known Subclasses:
AttributeExpression,IndexExpression,PassthroughExpression,SummaryExpression
- Author:
- Simon Thoresen Hult
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ExecutionContext context) booleancom.yahoo.document.DataTypegetInputType(TypeContext context) inthashCode()booleanReturns whether this expression outputs a different value than what it gets as input.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, getOutputType, getOutputType, leastGeneralNonNullOf, leastGeneralOf, mostGeneralOf, newInstance, requireOutputType, requiresInput, 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
-
OutputExpression
-
-
Method Details
-
isMutating
public boolean isMutating()Description copied from class:ExpressionReturns whether this expression outputs a different value than what it gets as input. Annotating a string value does not count as modifying it.- Overrides:
isMutatingin 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
-
getInputType
- Overrides:
getInputTypein classExpression
-
toString
-
equals
-
hashCode
public int hashCode()
-