public IntegratorShard(int index, Stage <Epoch> stage) : base(index, stage) { this.input = new VertexInputBuffer <Weighted <R>, Epoch>(this); this.output = new VertexOutputBuffer <Weighted <R>, Epoch>(this); this.currentIntegration = new Dictionary <R, Int64>(); }
/// <summary> /// Constructs a new UnaryBufferingVertex. /// </summary> /// <param name="index">vertex index</param> /// <param name="stage">host stage</param> /// <param name="transformation">transformation from input collection to output collection</param> public UnaryBufferingVertex(int index, Stage <TTime> stage, Expression <Func <IEnumerable <TInput>, IEnumerable <TOutput> > > transformation) : base(index, stage) { this.Input = new VertexInputBuffer <TInput, TTime>(this); if (transformation != null) { this.Transformation = transformation.Compile(); } }
/// <summary> /// Creates a new SinkBufferingStage /// </summary> /// <param name="index">vertex index</param> /// <param name="stage">host stage</param> /// <param name="action">action on input collection</param> public SinkBufferingVertex(int index, Stage <TTime> stage, Expression <Action <IEnumerable <TOutput> > > action) : base(index, stage) { this.Input = new VertexInputBuffer <TOutput, TTime>(this); if (action != null) { this.Action = action.Compile(); } }