Class FirstEverProjectionExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.FirstEverProjectionExpression
- All Implemented Interfaces:
Expression
,Serializable
Represents the "firstever" aggregation function.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.FirstEverProjectionExpression
(boolean isDistinct) Ctor.FirstEverProjectionExpression
(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
-
FirstEverProjectionExpression
public FirstEverProjectionExpression()Ctor. -
FirstEverProjectionExpression
public FirstEverProjectionExpression(boolean isDistinct) Ctor.- Parameters:
isDistinct
- true for distinct
-
FirstEverProjectionExpression
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
-