public class AvgProjectionExpression extends ExpressionBase
Expects a single child expression providing the values to aggregate.
Constructor and Description |
---|
AvgProjectionExpression()
Ctor.
|
AvgProjectionExpression(boolean isDistinct)
Ctor - for use to create an expression tree, without inner expression
|
AvgProjectionExpression(Expression expression,
boolean isDistinct)
Ctor - adds the expression to project.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getDistinct()
Returns true if the projection considers distinct values only.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
boolean |
isDistinct()
Returns true if the projection considers distinct values only.
|
void |
setDistinct(boolean distinct)
Set the distinct flag indicating the projection considers distinct values only.
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public AvgProjectionExpression()
public AvgProjectionExpression(boolean isDistinct)
isDistinct
- true if distinctpublic AvgProjectionExpression(Expression expression, boolean isDistinct)
expression
- returning values to projectisDistinct
- true if distinctpublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic boolean isDistinct()
public boolean getDistinct()
public void setDistinct(boolean distinct)
distinct
- true for distinct, false for not distinct