private IAggregator CreateAggregator(Tuple tuple) { var aggregator = _aggregatorFactory.Create(); tuple.SetState(this, aggregator); return(aggregator); }
private IFactAggregator CreateFactAggregator(Tuple tuple) { var aggregator = _aggregatorFactory.Create(); var factAggregator = new FactAggregator(aggregator); tuple.SetState(this, factAggregator); return(factAggregator); }
private IFactAggregator CreateFactAggregator(IExecutionContext context, Tuple tuple) { var aggregator = _aggregatorFactory.Create(); var factAggregator = new FactAggregator(aggregator); context.WorkingMemory.SetState(this, tuple, factAggregator); return(factAggregator); }
private IAggregator CreateAggregator(IExecutionContext context, Tuple tuple) { var aggregator = _aggregatorFactory.Create(); tuple.SetState(this, aggregator); var results = aggregator.Initial(); HandleAggregationResult(context, results, tuple); return(aggregator); }