示例#1
0
        protected override IStream <TOut> CreateOutputStream(GroupArgs <TIn, TKey, TOut> args)
        {
            if (this.ExecutionContext is GetDefinitionExecutionContext)
            {
                var inputStream  = new SingleStream <TIn>(this.Tracer.GetSubTraceMapper(this), this.ExecutionContext, this.NodeName, PushObservable.FromSingle(default(TIn)));
                var outputStream = args.SubProcess(inputStream);
                this.ExecutionContext.AddNode(this, outputStream.Observable, outputStream.TraceObservable);
            }
            var outputObservable = args.Stream.Observable.Group(args.GetKey, iS => args.SubProcess(new Stream <TIn>(this.Tracer.GetSubTraceMapper(this), this.ExecutionContext, this.NodeName, iS)).Observable);

            return(base.CreateUnsortedStream(outputObservable));
        }
示例#2
0
        protected override IStream <TOut> CreateOutputStream(GroupArgs <TIn, TKey, TOut> args)
        {
            var outputObservable = args.Stream.Observable.Group(args.GetKey, iS => args.SubProcess(new Stream <TIn>(this.Tracer.GetSubTracer(this), this.ExecutionContext, this.NodeName, iS)).Observable);

            return(base.CreateUnsortedStream(outputObservable));
        }
示例#3
0
 public GroupByStreamNode(string name, GroupArgs <TIn, TKey, TOut> args) : base(name, args)
 {
 }