| 583 | } |
| 584 | |
| 585 | static Result<acero::ExecNode*> Make(acero::ExecPlan* plan, |
| 586 | std::vector<acero::ExecNode*> inputs, |
| 587 | const acero::ExecNodeOptions& options) { |
| 588 | RETURN_NOT_OK(ValidateExecNodeInputs(plan, inputs, 1, "TeeNode")); |
| 589 | |
| 590 | const WriteNodeOptions write_node_options = |
| 591 | checked_cast<const WriteNodeOptions&>(options); |
| 592 | const FileSystemDatasetWriteOptions& write_options = write_node_options.write_options; |
| 593 | const std::shared_ptr<Schema> schema = inputs[0]->output_schema(); |
| 594 | |
| 595 | return plan->EmplaceNode<TeeNode>(plan, std::move(inputs), std::move(schema), |
| 596 | std::move(write_options)); |
| 597 | } |
| 598 | |
| 599 | const char* kind_name() const override { return "TeeNode"; } |
| 600 |
nothing calls this directly
no test coverage detected