| 423 | } |
| 424 | |
| 425 | string ExecNode::label() const { |
| 426 | map<int, const char*>::const_iterator i = _TPlanNodeType_VALUES_TO_NAMES.find(type_); |
| 427 | string node_type_name = "UNKNOWN"; |
| 428 | if (i != _TPlanNodeType_VALUES_TO_NAMES.end()) { |
| 429 | node_type_name = i->second; |
| 430 | } |
| 431 | return Substitute("$0 (id=$1)", node_type_name, std::to_string(id_)); |
| 432 | } |
| 433 | |
| 434 | void ExecNode::CollectNodes(TPlanNodeType::type node_type, vector<ExecNode*>* nodes) { |
| 435 | if (type_ == node_type) nodes->push_back(this); |