public class AggSvcGroupByLocalGroupBy extends AggSvcGroupLocalGroupByBase
aggregatorsPerLevelAndGroup, aggregatorsTopLevel, isJoin, localGroupByPlan, removedKeys, statesTopLevel
Constructor and Description |
---|
AggSvcGroupByLocalGroupBy(boolean isJoin,
AggregationLocalGroupByPlan localGroupByPlan) |
Modifier and Type | Method and Description |
---|---|
protected Object |
computeGroupKey(AggregationLocalGroupByLevel level,
Object groupKey,
ExprEvaluator[] partitionEval,
EventBean[] eventsPerStream,
boolean newData,
ExprEvaluatorContext exprEvaluatorContext) |
Object |
getValue(int column,
int agentInstanceId,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext exprEvaluatorContext)
Returns current aggregation state, for use by expression node representing an aggregation function.
|
void |
setCurrentAccess(Object groupByKey,
int agentInstanceId,
AggregationGroupByRollupLevel rollupLevel)
Set the current aggregation state row - for use when evaluation nodes are asked to evaluate.
|
accept, acceptGroupDetail, aggregateIntoEnter, aggregateIntoLeave, applyEnter, applyLeave, clearResults, clearResults, computeGroupKey, getAggregatorsPerLevelAndGroup, getAggregatorsTopLevel, getCollectionOfEvents, getCollectionScalar, getContextPartitionAggregationService, getEventBean, getGroupKey, getGroupKeys, getRemovedKeys, getStatesTopLevel, handleRemovedKeys, internalHandleGroupRemove, internalHandleUpdatedGroup, internalHandleUpdatedTop, isGrouped, setAggregatorsPerLevelAndGroup, setAggregatorsTopLevel, setRemovedCallback, setRemovedKeys, setStatesTopLevel, stop
public AggSvcGroupByLocalGroupBy(boolean isJoin, AggregationLocalGroupByPlan localGroupByPlan)
protected Object computeGroupKey(AggregationLocalGroupByLevel level, Object groupKey, ExprEvaluator[] partitionEval, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext)
computeGroupKey
in class AggSvcGroupLocalGroupByBase
public void setCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel)
AggregationService
groupByKey
- - single key identifying the row of aggregation statesagentInstanceId
- context partition idrollupLevel
- rollup levelpublic Object getValue(int column, int agentInstanceId, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext exprEvaluatorContext)
AggregationResultFuture
column
- is assigned to the aggregation expression node and passed as an column (index) into a rowagentInstanceId
- the context partition ideventsPerStream
- events per streamisNewData
- new vs removed indicatorexprEvaluatorContext
- context