Interface AggregationService
- All Superinterfaces:
AggregationResultFuture
,StopCallback
- All Known Subinterfaces:
AIRegistryAggregation
- All Known Implementing Classes:
AggregationServiceNull
,AggSvcGroupAllWTableImpl
,AggSvcGroupByWTableBase
,AggSvcGroupByWTableImpl
,AggSvcGroupByWTableRollupMultiKeyImpl
,AggSvcGroupByWTableRollupSingleKeyImpl
,AIRegistryAggregationMap
,AIRegistryAggregationMultiPerm
,AIRegistryAggregationSingle
Service for maintaining aggregation state. Processes events entering (a window, a join etc,) and
events leaving. Answers questions about current aggregation state for a given row.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(AggregationServiceVisitor visitor) void
void
applyEnter
(EventBean[] eventsPerStream, Object optionalGroupKeyPerRow, ExprEvaluatorContext exprEvaluatorContext) Apply events as entering a window (new events).void
applyLeave
(EventBean[] eventsPerStream, Object optionalGroupKeyPerRow, ExprEvaluatorContext exprEvaluatorContext) Apply events as leaving a window (old events).void
clearResults
(ExprEvaluatorContext exprEvaluatorContext) Clear current aggregation state.boolean
void
Methods inherited from interface com.espertech.esper.common.internal.epl.agg.core.AggregationResultFuture
getAggregationRow, getCollectionOfEvents, getCollectionScalar, getContextPartitionAggregationService, getEventBean, getGroupKey, getGroupKeys, getValue, setCurrentAccess
Methods inherited from interface com.espertech.esper.common.internal.util.StopCallback
stop
-
Field Details
-
EPTYPE
-
-
Method Details
-
applyEnter
void applyEnter(EventBean[] eventsPerStream, Object optionalGroupKeyPerRow, ExprEvaluatorContext exprEvaluatorContext) Apply events as entering a window (new events).- Parameters:
eventsPerStream
- - events for each stream entering windowoptionalGroupKeyPerRow
- - can be null if grouping without keys is desired, else the keys or array of keys to use for grouping, each distinct key value results in a new row of aggregation state.exprEvaluatorContext
- context for expression evaluatiom
-
applyLeave
void applyLeave(EventBean[] eventsPerStream, Object optionalGroupKeyPerRow, ExprEvaluatorContext exprEvaluatorContext) Apply events as leaving a window (old events).- Parameters:
eventsPerStream
- - events for each stream entering windowoptionalGroupKeyPerRow
- - can be null if grouping without keys is desired, else the keys or array of keys to use for grouping, each distinct key value results in a new row of aggregation state.exprEvaluatorContext
- context for expression evaluatiom
-
clearResults
Clear current aggregation state.- Parameters:
exprEvaluatorContext
- context
-
setRemovedCallback
-
accept
-
acceptGroupDetail
-
isGrouped
boolean isGrouped()
-