public AggregationMethod Make(MethodResolutionService methodResolutionService, int agentInstanceId, int groupId, int aggregationId) { if (_parent.StateType == AggregationStateType.FIRST) { return(methodResolutionService.MakeFirstEverValueAggregator(agentInstanceId, groupId, aggregationId, _resultType, false)); } else if (_parent.StateType == AggregationStateType.LAST) { return(methodResolutionService.MakeLastEverValueAggregator(agentInstanceId, groupId, aggregationId, _resultType, false)); } throw new EPRuntimeException("Window aggregation function is not available"); }
public AggregationMethod Make(MethodResolutionService methodResolutionService, int agentInstanceId, int groupId, int aggregationId) { return(methodResolutionService.MakeFirstEverValueAggregator(agentInstanceId, groupId, aggregationId, _childType, _parent.HasFilter)); }