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

Method drop_attribute

tiledb/sm/array_schema/array_schema_evolution.cc:237–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void ArraySchemaEvolution::drop_attribute(const std::string& attribute_name) {
238 std::lock_guard<std::mutex> lock(mtx_);
239 attributes_to_drop_.insert(attribute_name);
240
241 // Remove any added attributes with this name
242 attributes_to_add_.erase(
243 std::remove_if(
244 attributes_to_add_.begin(),
245 attributes_to_add_.end(),
246 [&](auto& a) { return a->name() == attribute_name; }),
247 attributes_to_add_.end());
248}
249
250std::vector<std::string> ArraySchemaEvolution::attribute_names_to_drop() const {
251 std::lock_guard<std::mutex> lock(mtx_);

Callers 1

evolve_schemaMethod · 0.45

Calls 4

insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected