|
||||||||||
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 |
---|
Nested classes/interfaces inherited from class net.esper.eql.expression.ExprNode |
---|
ExprNode.MappedPropertyParseResult |
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. |
protected String |
getAggregationFunctionName()
Returns the aggregation function name for representation in a generate expression string. |
MinMaxTypeEnum |
getMinMaxTypeEnum()
Returns the indicator for minimum or maximum. |
AggregationMethod |
validateAggregationChild(StreamTypeService streamTypeService,
MethodResolutionService methodResolutionService)
Gives the aggregation node a chance to validate the sub-expression types. |
Methods inherited from class net.esper.eql.expression.ExprAggregateNode |
---|
equalsNode, evaluate, getAggregatesBottomUp, getPrototypeAggregator, getType, isConstantResult, isDistinct, setAggregationResultFuture, toExpressionString, validate, validateSingleNumericChild |
Methods inherited from class net.esper.eql.expression.ExprNode |
---|
accept, addChildNode, deepEquals, dumpDebug, getChildNodes, getValidatedSubtree, parseMappedProperty |
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 AggregationMethod validateAggregationChild(StreamTypeService streamTypeService, MethodResolutionService methodResolutionService) throws ExprValidationException
ExprAggregateNode
validateAggregationChild
in class ExprAggregateNode
streamTypeService
- is the types per streammethodResolutionService
- used for resolving method and function names
ExprValidationException
- when expression 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
public MinMaxTypeEnum getMinMaxTypeEnum()
protected String getAggregationFunctionName()
ExprAggregateNode
getAggregationFunctionName
in class ExprAggregateNode
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |