Class ExprAggMultiFunctionCountMinSketchNode
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.accessagg.ExprAggMultiFunctionCountMinSketchNode
- All Implemented Interfaces:
ExprAggMultiFunctionNode
,ExprAggregateNode
,ExprEnumerationEval
,ExprEnumerationForge
,ExprEvaluator
,ExprForge
,ExprForgeInstrumentable
,ExprNode
,ExprNodeRenderable
,ExprValidator
public class ExprAggMultiFunctionCountMinSketchNode
extends ExprAggregateNodeBase
implements ExprAggMultiFunctionNode, ExprEnumerationEval
Represents the Count-min sketch aggregate function.
-
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
ConstructorDescriptionExprAggMultiFunctionCountMinSketchNode
(boolean distinct, CountMinSketchAggType aggType) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Return true if a expression aggregate node semantically equals the current node, or false if not.evaluateGetEventBean
(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) evaluateGetEventBeanCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateGetROCollectionEvents
(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) evaluateGetROCollectionEventsCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateGetROCollectionScalar
(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) evaluateGetROCollectionScalarCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) Returns the aggregation function name for representation in a generate expression string.getEventTypeCollection
(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) getEventTypeSingle
(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) protected boolean
protected 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, 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.agg.accessagg.ExprAggMultiFunctionNode
getAggFuture, getColumn
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprEnumerationForge
getForgeRenderable
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, equalsNode, getChildNodes, getForge, getPrecedence, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprValidator
validate
-
Field Details
-
MSG_NAME
- See Also:
-
-
Constructor Details
-
ExprAggMultiFunctionCountMinSketchNode
-
-
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
-
getExprEvaluatorEnumeration
- Specified by:
getExprEvaluatorEnumeration
in interfaceExprEnumerationForge
-
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
-
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
-
getAggType
-
getEventTypeCollection
public EventType getEventTypeCollection(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException - Specified by:
getEventTypeCollection
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
evaluateGetROCollectionEvents
public Collection<EventBean> evaluateGetROCollectionEvents(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluateGetROCollectionEvents
in interfaceExprEnumerationEval
-
getComponentTypeCollection
- Specified by:
getComponentTypeCollection
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
evaluateGetROCollectionScalar
public Collection evaluateGetROCollectionScalar(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluateGetROCollectionScalar
in interfaceExprEnumerationEval
-
evaluateGetROCollectionScalarCodegen
public CodegenExpression evaluateGetROCollectionScalarCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetROCollectionScalarCodegen
in interfaceExprEnumerationForge
-
evaluateGetROCollectionEventsCodegen
public CodegenExpression evaluateGetROCollectionEventsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetROCollectionEventsCodegen
in interfaceExprEnumerationForge
-
getEventTypeSingle
public EventType getEventTypeSingle(StatementRawInfo statementRawInfo, StatementCompileTimeServices compileTimeServices) throws ExprValidationException - Specified by:
getEventTypeSingle
in interfaceExprEnumerationForge
- Throws:
ExprValidationException
-
evaluateGetEventBean
public EventBean evaluateGetEventBean(EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluateGetEventBean
in interfaceExprEnumerationEval
-
evaluateGetEventBeanCodegen
public CodegenExpression evaluateGetEventBeanCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateGetEventBeanCodegen
in interfaceExprEnumerationForge
-
isExprTextWildcardWhenNoParams
protected boolean isExprTextWildcardWhenNoParams()- Overrides:
isExprTextWildcardWhenNoParams
in classExprAggregateNodeBase
-
getDeclaredWrongParameterExpr
- Throws:
ExprValidationException
-
isFilterExpressionAsLastParameter
protected boolean isFilterExpressionAsLastParameter()- Specified by:
isFilterExpressionAsLastParameter
in classExprAggregateNodeBase
-
getAggregationForgeFactory
- Specified by:
getAggregationForgeFactory
in interfaceExprAggMultiFunctionNode
-