Class LikeExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.LikeExpression
- All Implemented Interfaces:
Expression
,Serializable
SQL-Like expression for matching '%' and '_' wildcard strings following SQL standards.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - for use to create an expression tree, without child expression.LikeExpression
(boolean isNot) Ctor - for use to create an expression tree, without child expression.LikeExpression
(Expression left, Expression right) Ctor.LikeExpression
(Expression left, Expression right, boolean isNot) Ctor.LikeExpression
(Expression left, Expression right, Expression escape) Ctor.LikeExpression
(Expression left, Expression right, Expression escape, boolean isNot) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getNot()
Returns true if this is a "not like", or false if just a likeReturns precedence.boolean
isNot()
Returns true if this is a "not like", or false if just a likevoid
setNot
(boolean not) Set to true if this is a "not like", or false if just a likevoid
toPrecedenceFreeEPL
(StringWriter writer) Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.Methods inherited from class com.espertech.esper.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
LikeExpression
public LikeExpression()Ctor - for use to create an expression tree, without child expression.Use add methods to add child expressions to acts upon.
-
LikeExpression
public LikeExpression(boolean isNot) Ctor - for use to create an expression tree, without child expression.Use add methods to add child expressions to acts upon.
- Parameters:
isNot
- if the like-expression is negated
-
LikeExpression
Ctor.- Parameters:
left
- provides the value to matchright
- provides the like-expression to match against
-
LikeExpression
Ctor.- Parameters:
left
- provides the value to matchright
- provides the like-expression to match againstescape
- is the expression providing the string escape character
-
LikeExpression
Ctor.- Parameters:
left
- provides the value to matchright
- provides the like-expression to match againstisNot
- if the like-expression is negated
-
LikeExpression
Ctor.- Parameters:
left
- provides the value to matchright
- provides the like-expression to match againstescape
- is the expression providing the string escape characterisNot
- if the like-expression is negated
-
-
Method Details
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
Description copied from class:ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Specified by:
toPrecedenceFreeEPL
in classExpressionBase
- Parameters:
writer
- is the output to use
-
isNot
public boolean isNot()Returns true if this is a "not like", or false if just a like- Returns:
- indicator whether negated or not
-
setNot
public void setNot(boolean not) Set to true if this is a "not like", or false if just a like- Parameters:
not
- indicator whether negated or not
-
getNot
public boolean getNot()Returns true if this is a "not like", or false if just a like- Returns:
- indicator whether negated or not
-