Class LikeExpression<T,R>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<T,R>
-
- org.apache.qpid.server.query.engine.parsing.expression.comparison.AbstractComparisonExpression<T,java.lang.Boolean>
-
- org.apache.qpid.server.query.engine.parsing.expression.comparison.LikeExpression<T,R>
-
- Type Parameters:
T- Input parameter typeR- Output parameter type
- All Implemented Interfaces:
java.util.function.Function<T,java.lang.Boolean>,java.util.function.Predicate<T>,Expression<T,java.lang.Boolean>,ExpressionNode<T,java.lang.Boolean>
public class LikeExpression<T,R> extends AbstractComparisonExpression<T,java.lang.Boolean>
Comparison LIKE operation. Evaluates left expression against a pattern.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.comparison.AbstractComparisonExpression
_operator
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description LikeExpression(ExpressionNode<T,R> left, java.lang.String source, java.lang.String escape)Constructor initializes children expression list
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleanapply(T value)Performs LIKE comparison using parameters and the value supplied-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.comparison.AbstractComparisonExpression
getAlias, test
-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
containsAggregation, ctx, evaluateChild, getAggregations, 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
-
LikeExpression
public LikeExpression(ExpressionNode<T,R> left, java.lang.String source, java.lang.String escape)
Constructor initializes children expression list- Parameters:
left- Left child expressionsource- Source stringescape- Escape character
-
-
Method Detail
-
apply
public java.lang.Boolean apply(T value)
Performs LIKE comparison using parameters and the value supplied- Parameters:
value- Object to handle- Returns:
- Boolean result of value evaluation
-
-