public override void SetCurrentAccess(object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { var key = rollupLevel.ComputeMultiKey(groupByKey, TableMetadata.KeyTypes.Length); var bean = TableStateInstance.GetRowForGroupKey(key); if (bean != null) { var row = (AggregationRowPair) bean.Properties[0]; CurrentAggregatorMethods = row.Methods; CurrentAggregatorStates = row.States; } else { CurrentAggregatorMethods = null; } this.CurrentGroupKey = key; }
public virtual void SetCurrentAccess(object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { var bean = TableStateInstance.Rows.Get(groupByKey); if (bean != null) { var row = (AggregationRowPair)bean.Properties[0]; CurrentAggregatorMethods = row.Methods; CurrentAggregatorStates = row.States; } else { CurrentAggregatorMethods = null; } CurrentGroupKey = groupByKey; }
public void SetCurrentAccess(object groupKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { throw HandleNotSupported(); }
public void SetCurrentAccess(Object groupKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { _currentAccesses = GetAssertRow(agentInstanceId, groupKey); _currentGroupKey = groupKey; }
public void SetCurrentAccess(object groupKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { // no action needed - this implementation does not group and the current row is the single group }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { var row = _aggregatorsPerGroup.Get(groupByKey); if (row != null) { _currentAggregatorRow = row.Methods; } else { _currentAggregatorRow = null; } if (_currentAggregatorRow == null) { _currentAggregatorRow = AggSvcGroupByUtil.NewAggregators(Aggregators); } _currentGroupKey = groupByKey; }
public override void SetCurrentAccess(object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { if (!LocalGroupByPlan.AllLevels[0].IsDefaultLevel) { return; } var row = AggregatorsPerLevelAndGroup[0].Get(groupByKey); if (row != null) { _currentAggregatorMethods = row.Methods; _currentAggregatorStates = row.States; } else { _currentAggregatorMethods = null; } if (_currentAggregatorMethods == null) { _currentAggregatorMethods = AggSvcGroupByUtil.NewAggregators(LocalGroupByPlan.AllLevels[0].MethodFactories); _currentAggregatorStates = AggSvcGroupByUtil.NewAccesses(agentInstanceId, IsJoin, LocalGroupByPlan.AllLevels[0].StateFactories, groupByKey, null); } }
public override void SetCurrentAccess(object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { }
public void InternalHandleGroupUpdate(Object groupByKey, AggregationMethodPairRow row, AggregationGroupByRollupLevel groupByRollupLevel) { // no action required }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { AggregationMethodPairRow row; if (rollupLevel.IsAggregationTop) { row = _aggregatorTopGroup; } else { row = _aggregatorsPerGroup[rollupLevel.AggregationOffset].Get(groupByKey); } if (row != null) { _currentAggregatorMethods = row.Methods; _currentAggregatorStates = row.States; } else { _currentAggregatorMethods = null; } if (_currentAggregatorMethods == null) { _currentAggregatorMethods = AggSvcGroupByUtil.NewAggregators(Aggregators); _currentAggregatorStates = AggSvcGroupByUtil.NewAccesses(agentInstanceId, _isJoin, _accessAggregations, groupByKey, null); } _currentGroupKey = groupByKey; }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { _currentAggregatorRow = AggregatorsPerGroup.Get(groupByKey); _currentGroupKey = groupByKey; if (_currentAggregatorRow == null) { AggregationMethod[] methods = AggSvcGroupByUtil.NewAggregators(Aggregators); AggregationState[] states = AggSvcGroupByUtil.NewAccesses(agentInstanceId, IsJoin, AccessAggregations, groupByKey, null); _currentAggregatorRow = new AggregationRowPair(methods, states); AggregatorsPerGroup.Put(groupByKey, _currentAggregatorRow); } }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { AggregationMethodRowAged row = _aggregatorsPerGroup.Get(groupByKey); if (row != null) { _currentAggregatorMethods = row.Methods; _currentAggregatorStates = row.States; } else { _currentAggregatorMethods = null; } if (_currentAggregatorMethods == null) { _currentAggregatorMethods = _methodResolutionService.NewAggregators(Aggregators, agentInstanceId, groupByKey, GroupKeyBinding, null); _currentAggregatorStates = _methodResolutionService.NewAccesses(agentInstanceId, _isJoin, _accessAggregations, groupByKey, GroupKeyBinding, null); } _currentGroupKey = groupByKey; }
public void SetCurrentAccess(Object groupKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { // no implementation required }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { _currentAggregatorRow = _aggregatorsPerGroup.Get(groupByKey); _currentGroupKey = groupByKey; if (_currentAggregatorRow == null) { _currentAggregatorRow = _methodResolutionService.NewAggregators( Aggregators, agentInstanceId, groupByKey, GroupKeyBinding, null); _aggregatorsPerGroup.Put(groupByKey, _currentAggregatorRow); } }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { var row = AggregatorsPerGroup.Get(groupByKey); if (row != null) { _currentAggregatorMethods = row.Methods; _currentAggregatorStates = row.States; } else { _currentAggregatorMethods = null; } if (_currentAggregatorMethods == null) { _currentAggregatorMethods = AggSvcGroupByUtil.NewAggregators(Aggregators); _currentAggregatorStates = AggSvcGroupByUtil.NewAccesses(agentInstanceId, IsJoin, AccessAggregations, groupByKey, null); } _currentGroupKey = groupByKey; }
public void InternalHandleGroupRemove(Object groupByKey, AggregationGroupByRollupLevel groupByRollupLevel) { // no action required }
public void SetCurrentAccess(Object groupKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { }
public override void SetCurrentAccess(Object groupByKey, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) { _currentAggregatorRow = _aggregatorsPerGroup.Get(groupByKey); _currentGroupKey = groupByKey; if (_currentAggregatorRow == null) { _currentAggregatorRow = AggSvcGroupByUtil.NewAggregators(Aggregators); _aggregatorsPerGroup.Put(groupByKey, _currentAggregatorRow); } }