| 145 | ~SinkNode() override { *node_destroyed_ = true; } |
| 146 | |
| 147 | static Result<ExecNode*> Make(ExecPlan* plan, std::vector<ExecNode*> inputs, |
| 148 | const ExecNodeOptions& options) { |
| 149 | RETURN_NOT_OK(ValidateExecNodeInputs(plan, inputs, 1, "SinkNode")); |
| 150 | |
| 151 | const auto& sink_options = checked_cast<const SinkNodeOptions&>(options); |
| 152 | RETURN_NOT_OK(ValidateOptions(sink_options)); |
| 153 | return plan->EmplaceNode<SinkNode>(plan, std::move(inputs), sink_options.generator, |
| 154 | sink_options.schema, sink_options.backpressure, |
| 155 | sink_options.backpressure_monitor, |
| 156 | sink_options.sequence_output); |
| 157 | } |
| 158 | |
| 159 | const char* kind_name() const override { return "SinkNode"; } |
| 160 |
nothing calls this directly
no test coverage detected