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

Function GetOption

cpp/src/arrow/filesystem/util_internal.h:111–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110template <typename T>
111Result<T> GetOption(const std::string& key, const std::any& value) {
112 if (const auto* v = std::any_cast<T>(&value)) {
113 return *v;
114 }
115 return Status::Invalid("Filesystem option '", key, "' has the wrong type");
116}
117
118template <typename T>
119Result<std::shared_ptr<const T>> GetConstSharedPtrOption(const std::string& key,

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected