Class CountEverProjectionExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.CountEverProjectionExpression
- All Implemented Interfaces:
Expression
,Serializable
Represents the "countever" aggregation function.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.CountEverProjectionExpression
(boolean isDistinct) Ctor.CountEverProjectionExpression
(Expression expression, boolean isDistinct) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true for distinct.Returns precedence.boolean
Returns true for distinct.void
setDistinct
(boolean distinct) Set to true for distinct.void
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
-
CountEverProjectionExpression
public CountEverProjectionExpression()Ctor. -
CountEverProjectionExpression
public CountEverProjectionExpression(boolean isDistinct) Ctor.- Parameters:
isDistinct
- true for distinct
-
CountEverProjectionExpression
Ctor.- Parameters:
expression
- to aggregateisDistinct
- true for 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 for distinct.- Returns:
- boolean indicating distinct or not
-
getDistinct
public boolean getDistinct()Returns true for distinct.- Returns:
- boolean indicating distinct or not
-
setDistinct
public void setDistinct(boolean distinct) Set to true for distinct.- Parameters:
distinct
- indicating distinct or not
-