public Intersect(CollectionShard <Weighted <T> > source1,
                  Channel <Weighted <T> > channel1,
                  CollectionShard <Weighted <T> > source2,
                  Channel <Weighted <T> > channel2)
     : base("Intersect", source1, channel1, x => x.record, source2, channel2, x => x.record)
 {
 }
Beispiel #2
0
 public Union(CollectionShard <Weighted <T> > source1,
              Channel <Weighted <T> > channel1,
              CollectionShard <Weighted <T> > source2,
              Channel <Weighted <T> > channel2)
     : base("Union", source1, channel1, x => x.record, source2, channel2, x => x.record)
 {
 }
 public GroupBy(CollectionShard <Weighted <T> > source, Channel <Weighted <T> > channel,
                Func <T, K> keyFunc,
                Func <T, V> valFunc,
                Func <K, ResizeableSubArray <V>, R> resultSel)
     : base("GroupBy", source, channel, x => keyFunc(x.record))
 {
     selector       = valFunc;
     resultSelector = resultSel;
 }
Beispiel #4
0
 public Join(CollectionShard <Weighted <T1> > source1, Channel <Weighted <T1> > channel1,
             CollectionShard <Weighted <T2> > source2, Channel <Weighted <T2> > channel2,
             Func <T1, K> keyFunc1, Func <T2, K> keyFunc2,
             Func <T1, V1> valFunc1, Func <T2, V2> valFunc2,
             Func <K, V1, V2, R> resultSel)
     : base("Join", source1, channel1, x => keyFunc1(x.record), x => new Weighted <V1>(valFunc1(x.record), x.weight),
            source2, channel2, x => keyFunc2(x.record), x => new Weighted <V2>(valFunc2(x.record), x.weight))
 {
     resultSelector = resultSel;
 }
 public SelectMany(CollectionShard <Weighted <T> > s1, Channel <Weighted <T> > channel1, Func <T, IEnumerable <R> > s)
     : base("SelectMany", null, null)
 {
     source1  = s1;
     selector = s;
 }
 public Shave(CollectionShard <Weighted <T> > source1, Channel <Weighted <T> > channel1, Func <int, T, double> increment, Func <int, T, R> r)
     : base("Shave", source1, channel1, x => x.record)
 {
     reducer      = r;
     GetIncrement = (x, y) => ((Int64)(increment(x, y) * Int32.MaxValue));
 }
 public DataParallelCount(CollectionShard <Weighted <T> > source1, Channel <Weighted <T> > channel1, Func <T, K> key, Func <K, int, R> r)
     : base("Count", source1, channel1, x => key(x.record))
 {
     reducer = r;
 }
 public Except(CollectionShard <Weighted <T> > s1, Channel <Weighted <T> > channel1, CollectionShard <Weighted <T> > s2, Channel <Weighted <T> > channel2)
     : base("Except", null, null, null, null)
 {
     source1 = s1;
     source2 = s2;
 }
 public Monitor(CollectionShard <Weighted <T> > source1, Channel <Weighted <T> > channel1, string p)
     : base("Monitor", source1, channel1)
 {
     source = source1;
     prefix = p;
 }
 public Select(CollectionShard <Weighted <T> > s1, Channel <Weighted <T> > channel1, Func <T, R> s)
     : base("Select", null, null)
 {
     source1  = s1;
     selector = s;
 }
 public Where(CollectionShard <Weighted <T> > s1, Channel <Weighted <T> > channel1, Func <T, bool> p)
     : base("Where", null, null)
 {
     source1   = s1;
     predicate = p;
 }