| 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) { |
nothing calls this directly
no test coverage detected