MCPcopy Create free account
hub / github.com/apache/arrow / UnregisterType

Method UnregisterType

cpp/src/arrow/extension_type.cc:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 }
117
118 Status UnregisterType(const std::string& type_name) override {
119 std::lock_guard<std::mutex> lock(lock_);
120 auto it = name_to_type_.find(type_name);
121 if (it == name_to_type_.end()) {
122 return Status::KeyError("No type extension with name ", type_name, " found");
123 }
124 name_to_type_.erase(it);
125 return Status::OK();
126 }
127
128 std::shared_ptr<ExtensionType> GetType(const std::string& type_name) override {
129 std::lock_guard<std::mutex> lock(lock_);

Calls 4

KeyErrorFunction · 0.85
OKFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected