示例#1
0
 protected override IStream <AggregationResult <TIn, TKey, TAggrRes> > CreateOutputStream(AggregateArgs <TIn, TAggrRes, TKey> args)
 {
     return(CreateUnsortedStream(
                args.InputStream.Observable.Aggregate(
                    args.CreateEmptyAggregation,
                    args.GetKey,
                    args.Aggregate,
                    (i, k, a) => new AggregationResult <TIn, TKey, TAggrRes>
     {
         Aggregation = a,
         FirstValue = i,
         Key = k
     })));
 }
示例#2
0
 public AggregateStreamNode(string name, AggregateArgs <TIn, TAggrRes, TKey> args) : base(name, args)
 {
 }