| 56 | } |
| 57 | |
| 58 | Status AddSchemaFields(const Schema& schema) { |
| 59 | if (!field_path_to_id.empty()) { |
| 60 | return Status::Invalid("Non-empty DictionaryFieldMapper"); |
| 61 | } |
| 62 | ImportSchema(schema); |
| 63 | return Status::OK(); |
| 64 | } |
| 65 | |
| 66 | Status AddField(int64_t id, std::vector<int> field_path) { |
| 67 | const auto pair = field_path_to_id.emplace(FieldPath(std::move(field_path)), id); |
nothing calls this directly
no test coverage detected