public class AggregationServiceFactoryFactory
extends java.lang.Object
Consolidates aggregation nodes such that result futures point to a single instance and no re-evaluation of the same result occurs.
Constructor and Description |
---|
AggregationServiceFactoryFactory() |
Modifier and Type | Method and Description |
---|---|
static ExprValidationException |
getRollupReclaimEx() |
static AggregationServiceFactoryDesc |
getService(java.util.List<ExprAggregateNode> selectAggregateExprNodes,
ExprNode[] groupByNodes,
java.util.List<ExprAggregateNode> havingAggregateExprNodes,
java.util.List<ExprAggregateNode> orderByAggregateExprNodes,
java.util.List<ExprAggregateNodeGroupKey> groupKeyExpressions,
boolean hasGroupByClause,
ExprEvaluatorContext exprEvaluatorContext,
java.lang.annotation.Annotation[] annotations,
VariableService variableService,
boolean isJoin,
boolean isDisallowNoReclaim,
ExprNode whereClause,
ExprNode havingClause,
AggregationServiceFactoryService factoryService,
EventType[] typesPerStream,
MethodResolutionService methodResolutionService,
AggregationGroupByRollupDesc groupByRollupDesc,
java.lang.String optionalContextName)
Returns an instance to handle the aggregation required by the aggregation expression nodes, depending on
whether there are any group-by nodes.
|
static AggregationServiceMatchRecognizeFactoryDesc |
getServiceMatchRecognize(int numStreams,
java.util.Map<java.lang.Integer,java.util.List<ExprAggregateNode>> measureExprNodesPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Produces an aggregation service for use with match-recognice.
|
public static AggregationServiceMatchRecognizeFactoryDesc getServiceMatchRecognize(int numStreams, java.util.Map<java.lang.Integer,java.util.List<ExprAggregateNode>> measureExprNodesPerStream, ExprEvaluatorContext exprEvaluatorContext)
numStreams
- number of streamsmeasureExprNodesPerStream
- measure nodesexprEvaluatorContext
- context for expression evaluatiompublic static AggregationServiceFactoryDesc getService(java.util.List<ExprAggregateNode> selectAggregateExprNodes, ExprNode[] groupByNodes, java.util.List<ExprAggregateNode> havingAggregateExprNodes, java.util.List<ExprAggregateNode> orderByAggregateExprNodes, java.util.List<ExprAggregateNodeGroupKey> groupKeyExpressions, boolean hasGroupByClause, ExprEvaluatorContext exprEvaluatorContext, java.lang.annotation.Annotation[] annotations, VariableService variableService, boolean isJoin, boolean isDisallowNoReclaim, ExprNode whereClause, ExprNode havingClause, AggregationServiceFactoryService factoryService, EventType[] typesPerStream, MethodResolutionService methodResolutionService, AggregationGroupByRollupDesc groupByRollupDesc, java.lang.String optionalContextName) throws ExprValidationException
selectAggregateExprNodes
- - aggregation nodes extracted out of the select expressionhavingAggregateExprNodes
- - aggregation nodes extracted out of the select expressionorderByAggregateExprNodes
- - aggregation nodes extracted out of the select expressionhasGroupByClause
- - indicator on whethere there is group-by required, or group-allexprEvaluatorContext
- context for expression evaluatiomannotations
- - statement annotationsvariableService
- - variableisJoin
- - true for joinswhereClause
- the where-clause function if anyhavingClause
- the having-clause function if anyExprValidationException
- if validation failspublic static ExprValidationException getRollupReclaimEx()