Ejemplo n.º 1
0
 public DataflowCollection(Naiad.Dataflow.Stream <Weighted <R>, T> output)
 {
     this.output = output;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Counts records in the input stream, emitting new counts as they change.
 /// </summary>
 /// <typeparam name="TRecord">record type</typeparam>
 /// <param name="stream">input stream</param>
 /// <returns>stream of counts</returns>
 public static Naiad.Dataflow.Stream <Pair <TRecord, Int64>, Epoch> StreamingCount <TRecord>(this Naiad.Dataflow.Stream <TRecord, Epoch> stream)
 {
     return(Naiad.Frameworks.Foundry.NewStage(stream, (i, s) => new CountVertex <TRecord>(i, s), x => x.GetHashCode(), null, "Count"));
 }