|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.esper.client.soda.ExpressionBase
net.esper.client.soda.AvgProjectionExpression
public class AvgProjectionExpression
Average of the (distinct) values returned by an expression.
Expects a single child expression providing the values to aggregate.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
toEQL(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 net.esper.client.soda.ExpressionBase |
|---|
addChild, getChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvgProjectionExpression(boolean isDistinct)
isDistinct - true if distinct
public AvgProjectionExpression(Expression expression,
boolean isDistinct)
expression - returning values to projectisDistinct - true if distinct| Method Detail |
|---|
public void toEQL(StringWriter writer)
Expression
writer - is the output to usepublic boolean isDistinct()
public void setDistinct(boolean distinct)
distinct - true for distinct, false for not distinct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||