| 130 | } |
| 131 | |
| 132 | tuple< |
| 133 | shared_ptr<ArraySchema>, |
| 134 | std::unordered_map<std::string, shared_ptr<ArraySchema>>> |
| 135 | ArrayDirectory::load_array_schemas( |
| 136 | const EncryptionKey& encryption_key, |
| 137 | shared_ptr<MemoryTracker> memory_tracker) const { |
| 138 | // Load all array schemas |
| 139 | auto&& array_schemas = load_all_array_schemas(encryption_key, memory_tracker); |
| 140 | |
| 141 | // Locate the latest array schema |
| 142 | const auto& array_schema_latest_name = |
| 143 | latest_array_schema_uri().last_path_part(); |
| 144 | auto it = array_schemas.find(array_schema_latest_name); |
| 145 | passert( |
| 146 | it != array_schemas.end(), |
| 147 | "Cannot locate array schema '{}'", |
| 148 | array_schema_latest_name); |
| 149 | |
| 150 | return {it->second, array_schemas}; |
| 151 | } |
| 152 | |
| 153 | std::unordered_map<std::string, shared_ptr<ArraySchema>> |
| 154 | ArrayDirectory::load_all_array_schemas( |
no test coverage detected