Exemplo n.º 1
0
 protected override IKeyedStream <Correlated <TIn>, TSortingKey> CreateOutputStream(DistinctCorrelatedSortedArgs <TIn, TSortingKey> args)
 {
     return(base.CreateKeyedStream(
                args.InputStream.Observable.AggregateGrouped(
                    i => new HashSet <Guid>(),
                    args.InputStream.SortDefinition, (a, i) =>
     {
         a.UnionWith(i.CorrelationKeys);
         return a;
     },
                    (i, a) => new Correlated <TIn> {
         Row = i.Row, CorrelationKeys = a
     }), args.InputStream.SortDefinition));
 }
Exemplo n.º 2
0
 public DistinctCorrelatedSortedStreamNode(string name, DistinctCorrelatedSortedArgs <TIn, TSortingKey> args) : base(name, args)
 {
 }