Ejemplo n.º 1
0
 protected override ISortedStream <AggregationResult <TIn, TKey, TAggrRes>, TKey> CreateOutputStream(AggregateSortedArgs <TIn, TAggrRes, TKey> args)
 {
     return(CreateSortedStream(
                args.InputStream.Observable.AggregateGrouped(
                    args.CreateEmptyAggregation,
                    args.InputStream.SortDefinition,
                    args.Aggregate,
                    (i, a) => new AggregationResult <TIn, TKey, TAggrRes>
     {
         FirstValue = i,
         Aggregation = a,
         Key = args.InputStream.SortDefinition.GetKey(i)
     }),
                new SortDefinition <AggregationResult <TIn, TKey, TAggrRes>, TKey>(i => i.Key, args.InputStream.SortDefinition.KeyPosition)));
 }
Ejemplo n.º 2
0
 public AggregateSortedStreamNode(string name, AggregateSortedArgs <TIn, TAggrRes, TKey> args) : base(name, args)
 {
 }