|
||||||||||
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.BetweenExpression
public class BetweenExpression
Between checks that a given value is in a range between a low endpoint and a high endpoint.
Closed and open ranges (endpoint included or excluded) are supported by this class, as is not-between.
Constructor Summary | |
---|---|
BetweenExpression()
Ctor. |
|
BetweenExpression(boolean lowEndpointIncluded,
boolean highEndpointIncluded,
boolean notBetween)
Ctor - for use to create an expression tree, without child expression. |
|
BetweenExpression(Expression datapoint,
Expression lower,
Expression higher)
Ctor, creates a between range check. |
|
BetweenExpression(Expression datapoint,
Expression lower,
Expression higher,
boolean lowEndpointIncluded,
boolean highEndpointIncluded,
boolean notBetween)
Ctor. |
Method Summary | |
---|---|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence. |
boolean |
isHighEndpointIncluded()
True if the high endpoint is included. |
boolean |
isLowEndpointIncluded()
True if the low endpoint is included. |
boolean |
isNotBetween()
Returns true for not-between, or false for between range. |
void |
setHighEndpointIncluded(boolean highEndpointIncluded)
Set to true to indicate that the high endpoint is included (the default). |
void |
setLowEndpointIncluded(boolean lowEndpointIncluded)
Set to true to indicate that the low endpoint is included (the default). |
void |
setNotBetween(boolean notBetween)
Set to true for not-between, or false for between range. |
void |
toPrecedenceFreeEPL(java.io.StringWriter writer)
Renders the clause in textual representation. |
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 BetweenExpression()
public BetweenExpression(Expression datapoint, Expression lower, Expression higher)
datapoint
- provides the datapointlower
- provides lower boundaryhigher
- provides upper boundarypublic BetweenExpression(boolean lowEndpointIncluded, boolean highEndpointIncluded, boolean notBetween)
Use add methods to add child expressions to acts upon.
lowEndpointIncluded
- true if the low endpoint is included, false if nothighEndpointIncluded
- true if the high endpoint is included, false if notnotBetween
- true for not-between, false for betweenpublic BetweenExpression(Expression datapoint, Expression lower, Expression higher, boolean lowEndpointIncluded, boolean highEndpointIncluded, boolean notBetween)
datapoint
- provides the datapointlower
- provides lower boundaryhigher
- provides upper boundarylowEndpointIncluded
- true if the low endpoint is included, false if nothighEndpointIncluded
- true if the high endpoint is included, false if notnotBetween
- true for not-between, false for betweenMethod Detail |
---|
public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
toPrecedenceFreeEPL
in class ExpressionBase
writer
- to output topublic boolean isLowEndpointIncluded()
public void setLowEndpointIncluded(boolean lowEndpointIncluded)
lowEndpointIncluded
- true for inclusivepublic boolean isHighEndpointIncluded()
public void setHighEndpointIncluded(boolean highEndpointIncluded)
highEndpointIncluded
- true for inclusivepublic boolean isNotBetween()
public void setNotBetween(boolean notBetween)
notBetween
- false is the default range check, true checks if the value is outside of the range
|
© 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 |