| 75 | |
| 76 | struct DummyNode : ExecNode { |
| 77 | DummyNode(ExecPlan* plan, NodeVector inputs, bool is_sink, |
| 78 | StartProducingFunc start_producing, StopProducingFunc stop_producing) |
| 79 | : ExecNode(plan, std::move(inputs), {}, (is_sink) ? nullptr : dummy_schema()), |
| 80 | start_producing_(std::move(start_producing)), |
| 81 | stop_producing_(std::move(stop_producing)) { |
| 82 | input_labels_.resize(inputs_.size()); |
| 83 | for (size_t i = 0; i < input_labels_.size(); ++i) { |
| 84 | input_labels_[i] = std::to_string(i); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | const char* kind_name() const override { return "Dummy"; } |
| 89 | |