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

Method drop_enumeration

tiledb/sm/array_schema/array_schema_evolution.cc:344–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void ArraySchemaEvolution::drop_enumeration(
345 const std::string& enumeration_name) {
346 std::lock_guard<std::mutex> lock(mtx_);
347 enumerations_to_drop_.insert(enumeration_name);
348
349 auto add_it = enumerations_to_add_map_.find(enumeration_name);
350 if (add_it != enumerations_to_add_map_.end()) {
351 // Reset the pointer and erase it
352 enumerations_to_add_map_.erase(add_it);
353 }
354
355 auto extend_it = enumerations_to_extend_map_.find(enumeration_name);
356 if (extend_it != enumerations_to_extend_map_.end()) {
357 enumerations_to_extend_map_.erase(extend_it);
358 }
359}
360
361std::vector<std::string> ArraySchemaEvolution::enumeration_names_to_drop()
362 const {

Callers 1

evolve_schemaMethod · 0.45

Calls 2

insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected