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

Method OpenInputFile

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

Source from the content-addressed store, hash-verified

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