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(); } }
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(); } }