| 72 | } |
| 73 | |
| 74 | Result<int64_t> GetFieldId(std::vector<int> field_path) const { |
| 75 | const auto it = field_path_to_id.find(FieldPath(std::move(field_path))); |
| 76 | if (it == field_path_to_id.end()) { |
| 77 | return Status::KeyError("Dictionary field not found"); |
| 78 | } |
| 79 | return it->second; |
| 80 | } |
| 81 | |
| 82 | int num_fields() const { return static_cast<int>(field_path_to_id.size()); } |
| 83 |