public class ExprPlugInAggNode extends ExprAggregateNodeBase implements ExprAggregationPlugInNodeMarker
aggregationResultFuture, column, isDistinct, optionalAggregateLocalGroupByDesc, optionalFilter, positionalParams
Constructor and Description |
---|
ExprPlugInAggNode(boolean distinct,
AggregationFunctionFactory aggregationFunctionFactory,
String functionName)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsNodeAggregateMethodOnly(ExprAggregateNode node)
Return true if a expression aggregate node semantically equals the current node, or false if not.
|
String |
getAggregationFunctionName()
Returns the aggregation function name for representation in a generate expression string.
|
protected boolean |
isFilterExpressionAsLastParameter() |
AggregationMethodFactory |
validateAggregationChild(ExprValidationContext validationContext)
Gives the aggregation node a chance to validate the sub-expression types.
|
equalsNode, evaluate, evaluateCodegen, getComplexity, getEvaluationType, getExprEvaluator, getFactory, getForge, getForgeRenderable, getOptionalFilter, getOptionalLocalGroupBy, getPositionalParams, getPrecedence, isConstantResult, isDistinct, isExprTextWildcardWhenNoParams, makeExceptionExpectedParamNum, setAggregationResultFuture, toPrecedenceFreeEPL, validate, validateFilter, validateNumericChildAllowFilter, validatePositionals
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, accept, acceptChildnodes, addChildNode, addChildNodes, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes
toEPL
public ExprPlugInAggNode(boolean distinct, AggregationFunctionFactory aggregationFunctionFactory, String functionName)
distinct
- - flag indicating unique or non-unique value aggregationaggregationFunctionFactory
- - is the base class for plug-in aggregation functionsfunctionName
- is the aggregation function namepublic AggregationMethodFactory validateAggregationChild(ExprValidationContext validationContext) throws ExprValidationException
ExprAggregateNodeBase
validateAggregationChild
in class ExprAggregateNodeBase
validationContext
- validation informationExprValidationException
- when expression validation failedpublic String getAggregationFunctionName()
ExprAggregateNodeBase
getAggregationFunctionName
in class ExprAggregateNodeBase
public final boolean equalsNodeAggregateMethodOnly(ExprAggregateNode node)
ExprAggregateNodeBase
For use by the equalsNode implementation which compares the distinct flag.
equalsNodeAggregateMethodOnly
in class ExprAggregateNodeBase
node
- to compare toprotected boolean isFilterExpressionAsLastParameter()
isFilterExpressionAsLastParameter
in class ExprAggregateNodeBase