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

Method GetType

cpp/src/arrow/extension_type.cc:128–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 std::shared_ptr<ExtensionType> GetType(const std::string& type_name) override {
129 std::lock_guard<std::mutex> lock(lock_);
130 auto it = name_to_type_.find(type_name);
131 if (it == name_to_type_.end()) {
132 return nullptr;
133 } else {
134 return it->second;
135 }
136 return nullptr;
137 }
138
139 private:
140 std::mutex lock_;

Callers 1

GetExtensionTypeFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected