Class ExprMinMaxAggrNode
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.agg.base.ExprAggregateNodeBase
com.espertech.esper.common.internal.epl.expression.agg.method.ExprMinMaxAggrNode
- All Implemented Interfaces:
ExprAggregateNode
,ExprEvaluator
,ExprForge
,ExprForgeInstrumentable
,ExprNode
,ExprNodeRenderable
,ExprValidator
Represents the min/max(distinct? ...) aggregate function is an expression tree.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.expression.agg.base.ExprAggregateNodeBase
aggregationResultFutureMemberName, column, isDistinct, optionalAggregateLocalGroupByDesc, optionalFilter, positionalParams
Fields inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator
EPTYPE, EPTYPEARRAY
-
Constructor Summary
ConstructorDescriptionExprMinMaxAggrNode
(boolean distinct, MinMaxTypeEnum minMaxTypeEnum, boolean isFFunc, boolean isEver) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Return true if a expression aggregate node semantically equals the current node, or false if not.Returns the aggregation function name for representation in a generate expression string.Returns the indicator for minimum or maximum.boolean
isEver()
protected boolean
boolean
validateAggregationChild
(ExprValidationContext validationContext) Gives the aggregation node a chance to validate the sub-expression types.Methods inherited from class com.espertech.esper.common.internal.epl.expression.agg.base.ExprAggregateNodeBase
equalsNode, evaluate, evaluateCodegen, evaluateCodegenUninstrumented, getAggFuture, getColumn, getEvaluationType, getExprEvaluator, getFactory, getForge, getForgeConstantType, getForgeRenderable, getOptionalFilter, getOptionalLocalGroupBy, getPositionalParams, getPrecedence, isConstantResult, isDistinct, isExprTextWildcardWhenNoParams, makeExceptionExpectedParamNum, setColumn, toPrecedenceFreeEPL, validate, validateFilter, validateNumericChildAllowFilter, validatePositionals
Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
-
Constructor Details
-
ExprMinMaxAggrNode
public ExprMinMaxAggrNode(boolean distinct, MinMaxTypeEnum minMaxTypeEnum, boolean isFFunc, boolean isEver)
-
-
Method Details
-
validateAggregationChild
public AggregationForgeFactory validateAggregationChild(ExprValidationContext validationContext) throws ExprValidationException Description copied from class:ExprAggregateNodeBase
Gives the aggregation node a chance to validate the sub-expression types.- Specified by:
validateAggregationChild
in classExprAggregateNodeBase
- Parameters:
validationContext
- validation information- Returns:
- aggregation function factory to use
- Throws:
ExprValidationException
- when expression validation failed
-
equalsNodeAggregateMethodOnly
Description copied from class:ExprAggregateNodeBase
Return true if a expression aggregate node semantically equals the current node, or false if not.For use by the equalsNode implementation which compares the distinct flag.
- Specified by:
equalsNodeAggregateMethodOnly
in classExprAggregateNodeBase
- Parameters:
node
- to compare to- Returns:
- true if semantically equal, or false if not equals
-
getMinMaxTypeEnum
Returns the indicator for minimum or maximum.- Returns:
- min/max indicator
-
isHasFilter
public boolean isHasFilter() -
getAggregationFunctionName
Description copied from class:ExprAggregateNodeBase
Returns the aggregation function name for representation in a generate expression string.- Specified by:
getAggregationFunctionName
in classExprAggregateNodeBase
- Returns:
- aggregation function name
-
isEver
public boolean isEver() -
isFilterExpressionAsLastParameter
protected boolean isFilterExpressionAsLastParameter()- Specified by:
isFilterExpressionAsLastParameter
in classExprAggregateNodeBase
-