Class PlugInProjectionExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.PlugInProjectionExpression
- All Implemented Interfaces:
Expression
,Serializable
Represents a plug-in aggregation function.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.PlugInProjectionExpression
(String functionName, boolean isDistinct) Ctor.PlugInProjectionExpression
(String functionName, boolean isDistinct, Expression... moreExpressions) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the function name.Returns precedence.boolean
Returns true for distinct.void
setDistinct
(boolean distinct) Set to true for distinct.void
setFunctionName
(String functionName) Sets the function name.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
-
PlugInProjectionExpression
public PlugInProjectionExpression()Ctor. -
PlugInProjectionExpression
Ctor.- Parameters:
functionName
- the name of the functionisDistinct
- true for distinct
-
PlugInProjectionExpression
public PlugInProjectionExpression(String functionName, boolean isDistinct, Expression... moreExpressions) Ctor.- Parameters:
functionName
- the name of the functionisDistinct
- true for distinctmoreExpressions
- provides aggregated values
-
-
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
-
getFunctionName
Returns the function name.- Returns:
- name of function
-
setFunctionName
Sets the function name.- Parameters:
functionName
- name of function
-
isDistinct
public boolean isDistinct()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
-