| 84 | } |
| 85 | |
| 86 | Status Validate() const { |
| 87 | if (nodes_.empty()) { |
| 88 | return Status::Invalid("ExecPlan has no node"); |
| 89 | } |
| 90 | for (const auto& node : nodes_) { |
| 91 | RETURN_NOT_OK(node->Validate()); |
| 92 | } |
| 93 | return Status::OK(); |
| 94 | } |
| 95 | |
| 96 | void StartProducing() { |
| 97 | if (finished_.is_finished()) { |