Example #1
0
        public Writer(int index, Naiad.Dataflow.Stage <Epoch> stage, Action <S, System.IO.BinaryWriter> action, string format)
            : base(index, stage)
        {
            this.format = format;

            this.Action = action;
        }
Example #2
0
        public Writer(int index, Naiad.Dataflow.Stage<Epoch> stage, Action<S, System.IO.BinaryWriter> action, string format)
            : base(index, stage)
        {
            var filename = String.Format(format, index);

            if (System.IO.File.Exists(filename))
                System.IO.File.Delete(filename);

            this.writer = new System.IO.BinaryWriter(System.IO.File.OpenWrite(String.Format(format, index)));
            this.Action = action;
        }
Example #3
0
 public ConcatVertex(int index, Naiad.Dataflow.Stage <T> stage) : base(index, stage)
 {
 }
Example #4
0
 // the UnaryVertex base class needs to know the index and stage of the vertex.
 public CountVertex(int index, Naiad.Dataflow.Stage <Epoch> stage) : base(index, stage)
 {
 }