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

Method load_array_schema_latest

tiledb/sm/array/array_directory.cc:111–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111shared_ptr<ArraySchema> ArrayDirectory::load_array_schema_latest(
112 const EncryptionKey& encryption_key,
113 shared_ptr<MemoryTracker> memory_tracker) const {
114 auto timer_se =
115 resources_.get().stats().start_timer("sm_load_array_schema_latest");
116
117 if (uri_.is_invalid()) {
118 throw ArrayDirectoryException(
119 "Cannot load array schema; Invalid array URI");
120 }
121
122 // Load schema from URI
123 const URI& schema_uri = latest_array_schema_uri();
124 auto&& array_schema = load_array_schema_from_uri(
125 resources_.get(), schema_uri, encryption_key, memory_tracker);
126
127 array_schema->set_array_uri(uri_.remove_trailing_slash());
128
129 return std::move(array_schema);
130}
131
132tuple<
133 shared_ptr<ArraySchema>,

Callers 5

load_array_schemaFunction · 0.80
evolve_array_schemaMethod · 0.80
upgrade_versionMethod · 0.80

Calls 7

is_invalidMethod · 0.80
start_timerMethod · 0.45
statsMethod · 0.45
getMethod · 0.45
set_array_uriMethod · 0.45
remove_trailing_slashMethod · 0.45

Tested by 1