Class ReplaceExpression<T,R>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<T,R>
-
- org.apache.qpid.server.query.engine.parsing.expression.function.AbstractFunctionExpression<T,String>
-
- org.apache.qpid.server.query.engine.parsing.expression.function.string.ReplaceExpression<T,R>
-
- Type Parameters:
T- Input parameter typeR- Return parameter type
- All Implemented Interfaces:
Function<T,String>,Expression<T,String>,ExpressionNode<T,String>
public class ReplaceExpression<T,R> extends AbstractFunctionExpression<T,String>
REPLACE takes a source parameter, a pattern parameter and a replacement parameter. Replaces all occurrences of pattern in source string with the replacement strings. If source string is NULL, returns NULL.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.function.AbstractFunctionExpression
_functionName
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description ReplaceExpression(String alias, List<ExpressionNode<T,?>> args)Constructor initializes children expression list
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringapply(T value)Performs replace operation using parameters and the value supplied-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.function.AbstractFunctionExpression
evaluateChild, getFunctionName, getOptionalConstantParameter, getOptionalParameter, getRequiredParameter
-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
containsAggregation, ctx, evaluateChild, getAggregations, getAlias, getChild, getChildren, getParent, isAccessor, isInstantlyEvaluable, setAlias, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.query.engine.parsing.expression.Expression
andThen
-
-
-
-
Constructor Detail
-
ReplaceExpression
public ReplaceExpression(String alias, List<ExpressionNode<T,?>> args)
Constructor initializes children expression list- Parameters:
alias- Expression aliasargs- List of children expressions
-
-