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

Function BuildBaseUrl

cpp/src/arrow/filesystem/azurefs.cc:287–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286namespace {
287std::string BuildBaseUrl(const std::string& scheme, const std::string& authority,
288 const std::string& account_name) {
289 std::string url;
290 url += scheme + "://";
291 if (!authority.empty()) {
292 if (authority[0] == '.') {
293 url += account_name;
294 url += authority;
295 } else {
296 url += authority;
297 url += "/";
298 url += account_name;
299 }
300 }
301 url += "/";
302 return url;
303}
304
305template <typename... PrefixArgs>
306Status ExceptionToStatus(const Azure::Core::RequestFailedException& exception,

Callers 2

AccountBlobUrlMethod · 0.85
AccountDfsUrlMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected