|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ExpressionBase
com.espertech.esper.client.soda.InExpression
public class InExpression
In-expresson checks that a value is in (or not in) a set of values, equivalent to the syntax "color in ('red', 'blue')".
Constructor Summary | |
---|---|
InExpression()
Ctor. |
|
InExpression(boolean isNotIn)
Ctor - for use to create an expression tree, without child expression. |
|
InExpression(Expression value,
boolean isNotIn,
Expression[] parameters)
Ctor. |
|
InExpression(Expression value,
boolean isNotIn,
java.lang.Object... parameters)
Ctor - for use to create an expression tree, without child expression. |
Method Summary | |
---|---|
InExpression |
add(Expression expression)
Add an expression to include in the computation. |
InExpression |
add(java.lang.Object object)
Add a constant to include in the computation. |
InExpression |
add(java.lang.String propertyName)
Add a property to include in the computation. |
boolean |
getNotIn()
Returns true for the not-in expression, or false for an in-expression. |
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence. |
boolean |
isNotIn()
Returns true for the not-in expression, or false for an in-expression. |
void |
setNotIn(boolean notIn)
Set to true to indicate this is a not-in expression. |
void |
toPrecedenceFreeEPL(java.io.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.client.soda.ExpressionBase |
---|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InExpression()
public InExpression(boolean isNotIn)
Use add methods to add child expressions to acts upon.
isNotIn
- true for the not-in expression, false for the in-expressionpublic InExpression(Expression value, boolean isNotIn, java.lang.Object... parameters)
Use add methods to add child expressions to acts upon.
value
- an expression that provides the value to search for in the setisNotIn
- true for the not-in expression, false for the in-expressionparameters
- is a set of constants to match againstpublic InExpression(Expression value, boolean isNotIn, Expression[] parameters)
value
- expression to checkisNotIn
- indicator whether not-in (true) or in (false)parameters
- expression listMethod Detail |
---|
public boolean isNotIn()
public boolean getNotIn()
public void setNotIn(boolean notIn)
notIn
- true for not-in, false for in-expressionpublic InExpression add(java.lang.Object object)
object
- constant to add
public InExpression add(Expression expression)
expression
- to add
public InExpression add(java.lang.String propertyName)
propertyName
- is the name of the property
public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |