Class SetLanguageExpression
java.lang.Object
com.yahoo.vespa.objects.Selectable
com.yahoo.vespa.indexinglanguage.expressions.Expression
com.yahoo.vespa.indexinglanguage.expressions.SetLanguageExpression
Sets the language in the execution context.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ExecutionContext context) booleaninthashCode()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, getInputType, 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
-
SetLanguageExpression
public SetLanguageExpression()
-
-
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
-
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()
-