|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.expression.ExprNode
net.esper.eql.expression.ExprAggregateNode
net.esper.eql.expression.ExprMinMaxAggrNode
public class ExprMinMaxAggrNode
Represents the min/max(distinct? ...) aggregate function is an expression tree.
Nested Class Summary | |
---|---|
static class |
ExprMinMaxAggrNode.MinMaxAggregator
Min/max aggregator for all values. |
Field Summary |
---|
Fields inherited from class net.esper.eql.expression.ExprAggregateNode |
---|
isDistinct |
Constructor Summary | |
---|---|
ExprMinMaxAggrNode(boolean distinct,
MinMaxTypeEnum minMaxTypeEnum)
Ctor. |
Method Summary | |
---|---|
boolean |
equalsNodeAggregate(ExprAggregateNode node)
Return true if a expression aggregate node semantically equals the current node, or false if not. |
Aggregator |
getAggregationFunction()
Returns the aggregation state prototype for use in grouping aggregation states per group-by keys. |
protected String |
getAggregationFunctionName()
Returns the aggregation function name for representation in a generate expression string. |
Class |
getType()
Returns the type that the node's evaluate method returns an instance of. |
void |
validate(StreamTypeService streamTypeService,
AutoImportService autoImportService,
ViewResourceDelegate viewResourceDelegate)
Validate node. |
Methods inherited from class net.esper.eql.expression.ExprAggregateNode |
---|
equalsNode, evaluate, getAggregatesBottomUp, getPrototypeAggregator, isDistinct, setAggregationResultFuture, toExpressionString, validateSingleNumericChild |
Methods inherited from class net.esper.eql.expression.ExprNode |
---|
accept, addChildNode, deepEquals, dumpDebug, getChildNodes, getValidatedSubtree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExprMinMaxAggrNode(boolean distinct, MinMaxTypeEnum minMaxTypeEnum)
distinct
- - indicator whether distinct values of all values min/maxminMaxTypeEnum
- - enum for whether to minimum or maximum computeMethod Detail |
---|
public void validate(StreamTypeService streamTypeService, AutoImportService autoImportService, ViewResourceDelegate viewResourceDelegate) throws ExprValidationException
ExprValidator
streamTypeService
- serves stream event type infoautoImportService
- - for resolving class names in library method invocationsviewResourceDelegate
- - delegates for view resources to expression nodes
ExprValidationException
- thrown when validation failedpublic Aggregator getAggregationFunction()
ExprAggregateNode
getAggregationFunction
in class ExprAggregateNode
public Class getType() throws ExprValidationException
ExprValidator
ExprValidationException
- thrown when validation failedpublic final boolean equalsNodeAggregate(ExprAggregateNode node)
ExprAggregateNode
For use by the equalsNode implementation which compares the distinct flag.
equalsNodeAggregate
in class ExprAggregateNode
node
- to compare to
protected String getAggregationFunctionName()
ExprAggregateNode
getAggregationFunctionName
in class ExprAggregateNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |