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