| 452 | std::string ExecPlan::ToString() const { return ToDerived(this)->ToString(); } |
| 453 | |
| 454 | ExecNode::ExecNode(ExecPlan* plan, NodeVector inputs, |
| 455 | std::vector<std::string> input_labels, |
| 456 | std::shared_ptr<Schema> output_schema) |
| 457 | : stopped_(false), |
| 458 | plan_(plan), |
| 459 | inputs_(std::move(inputs)), |
| 460 | input_labels_(std::move(input_labels)), |
| 461 | output_schema_(std::move(output_schema)) { |
| 462 | for (auto input : inputs_) { |
| 463 | DCHECK_NE(input, nullptr) << " null input"; |
| 464 | DCHECK_EQ(input->output_, nullptr) << " attempt to add a second output to a node"; |
| 465 | DCHECK(!input->is_sink()) << " attempt to add a sink node as input"; |
| 466 | input->output_ = this; |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | const Ordering& ExecNode::ordering() const { |
| 471 | // The safest default is to assume a node destroys ordering |
nothing calls this directly
no outgoing calls
no test coverage detected