Class MinProjectionExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.MinProjectionExpression
- All Implemented Interfaces:
Expression
,Serializable
Minimum of the (distinct) values returned by an expression.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.MinProjectionExpression
(boolean isDistinct) Ctor - for use to create an expression tree, without inner expressionMinProjectionExpression
(boolean isDistinct, boolean isEver) Ctor - for use to create an expression tree, without inner expressionMinProjectionExpression
(Expression expression, boolean isDistinct) Ctor - adds the expression to project. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the projection considers distinct values only.Returns precedence.boolean
Returns true if the projection considers distinct values only.boolean
isEver()
Returns true for max-evervoid
setDistinct
(boolean distinct) Set the distinct flag indicating the projection considers distinct values only.void
setEver
(boolean ever) Set to true for max-evervoid
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
-
MinProjectionExpression
public MinProjectionExpression()Ctor. -
MinProjectionExpression
public MinProjectionExpression(boolean isDistinct) Ctor - for use to create an expression tree, without inner expression- Parameters:
isDistinct
- true if distinct
-
MinProjectionExpression
public MinProjectionExpression(boolean isDistinct, boolean isEver) Ctor - for use to create an expression tree, without inner expression- Parameters:
isDistinct
- true if distinctisEver
- ever-indicator
-
MinProjectionExpression
Ctor - adds the expression to project.- Parameters:
expression
- returning values to projectisDistinct
- true if distinct
-
-
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
-
isDistinct
public boolean isDistinct()Returns true if the projection considers distinct values only.- Returns:
- true if distinct
-
getDistinct
public boolean getDistinct()Returns true if the projection considers distinct values only.- Returns:
- true if distinct
-
setDistinct
public void setDistinct(boolean distinct) Set the distinct flag indicating the projection considers distinct values only.- Parameters:
distinct
- true for distinct, false for not distinct
-
isEver
public boolean isEver()Returns true for max-ever- Returns:
- indicator for "ever"
-
setEver
public void setEver(boolean ever) Set to true for max-ever- Parameters:
ever
- indicator for "ever"
-