| 64 | |
| 65 | struct DummyNode : ExecNode { |
| 66 | DummyNode(ExecPlan* plan, NodeVector inputs, bool is_sink, |
| 67 | StartProducingFunc start_producing, StopProducingFunc stop_producing) |
| 68 | : ExecNode(plan, std::move(inputs), {}, (is_sink) ? nullptr : dummy_schema()), |
| 69 | start_producing_(std::move(start_producing)), |
| 70 | stop_producing_(std::move(stop_producing)) { |
| 71 | input_labels_.resize(inputs_.size()); |
| 72 | for (size_t i = 0; i < input_labels_.size(); ++i) { |
| 73 | input_labels_[i] = std::to_string(i); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | const char* kind_name() const override { return "Dummy"; } |
| 78 | |