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

Method OpenInputFile

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

Source from the content-addressed store, hash-verified

2226 }
2227
2228 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const AzureLocation& location,
2229 AzureFileSystem* fs) {
2230 RETURN_NOT_OK(ValidateFileLocation(location));
2231 auto blob_client = std::make_shared<Blobs::BlobClient>(
2232 GetBlobClient(location.container, location.path));
2233
2234 auto ptr = std::make_shared<ObjectInputFile>(blob_client, fs->io_context(),
2235 std::move(location));
2236 RETURN_NOT_OK(ptr->Init());
2237 return ptr;
2238 }
2239
2240 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const FileInfo& info,
2241 AzureFileSystem* fs) {

Callers

nothing calls this directly

Calls 7

ValidateFileLocationFunction · 0.85
PathNotFoundFunction · 0.70
NotAFileFunction · 0.70
InitMethod · 0.45
typeMethod · 0.45
pathMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected