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

Method OpenInputFile

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

Source from the content-addressed store, hash-verified

2981 }
2982
2983 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const std::string& s,
2984 S3FileSystem* fs) {
2985 ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(s));
2986 ARROW_ASSIGN_OR_RAISE(auto path, S3Path::FromString(s));
2987 RETURN_NOT_OK(ValidateFilePath(path));
2988
2989 RETURN_NOT_OK(CheckS3Initialized());
2990
2991 auto ptr = std::make_shared<ObjectInputFile>(holder_, fs->io_context(), path, kNoSize,
2992 fs->options().sse_customer_key);
2993 RETURN_NOT_OK(ptr->Init());
2994 return ptr;
2995 }
2996
2997 Result<std::shared_ptr<ObjectInputFile>> OpenInputFile(const FileInfo& info,
2998 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