MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / load_array_schemas

Method load_array_schemas

tiledb/sm/array/array_directory.cc:132–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132tuple<
133 shared_ptr<ArraySchema>,
134 std::unordered_map<std::string, shared_ptr<ArraySchema>>>
135ArrayDirectory::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
153std::unordered_map<std::string, shared_ptr<ArraySchema>>
154ArrayDirectory::load_all_array_schemas(

Callers 3

fragment_info.ccFile · 0.80
open_for_writesMethod · 0.80

Calls 2

last_path_partMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected