| 888 | } |
| 889 | |
| 890 | int SchemaDescriptor::ColumnIndex(const std::string& node_path) const { |
| 891 | auto search = leaf_to_idx_.find(node_path); |
| 892 | if (search == leaf_to_idx_.end()) { |
| 893 | // Not found |
| 894 | return -1; |
| 895 | } |
| 896 | return search->second; |
| 897 | } |
| 898 | |
| 899 | int SchemaDescriptor::ColumnIndex(const Node& node) const { |
| 900 | auto search = leaf_to_idx_.equal_range(node.path()->ToDotString()); |