コード例 #1
0
 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");
 }
コード例 #2
0
 public AggregationMethod Make(MethodResolutionService methodResolutionService, int agentInstanceId, int groupId, int aggregationId)
 {
     return(methodResolutionService.MakeFirstEverValueAggregator(agentInstanceId, groupId, aggregationId, _childType, _parent.HasFilter));
 }