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

Method OpenInputFile

cpp/src/arrow/filesystem/s3fs.cc:3042–3054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3040 }
3041
3042 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const std::string& s,
3043 S3FileSystem* fs) {
3044 ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(s));
3045 ARROW_ASSIGN_OR_RAISE(auto path, S3Path::FromString(s));
3046 RETURN_NOT_OK(ValidateFilePath(path));
3047
3048 RETURN_NOT_OK(CheckS3Initialized());
3049
3050 auto ptr = std::make_shared<ObjectInputFile>(holder_, fs->io_context(), path, kNoSize,
3051 fs->options().sse_customer_key);
3052 RETURN_NOT_OK(ptr->Init());
3053 return ptr;
3054 }
3055
3056 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const FileInfo& info,
3057 S3FileSystem* fs) {

Callers

nothing calls this directly

Calls 10

AssertNoTrailingSlashFunction · 0.85
ValidateFilePathFunction · 0.85
CheckS3InitializedFunction · 0.85
PathNotFoundFunction · 0.70
NotAFileFunction · 0.70
optionsMethod · 0.45
InitMethod · 0.45
pathMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected