| 246 | } |
| 247 | |
| 248 | Result<std::shared_ptr<io::InputStream>> OpenInputStream(const std::string& path) { |
| 249 | ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(path)); |
| 250 | std::shared_ptr<io::HdfsReadableFile> file; |
| 251 | RETURN_NOT_OK(client_->OpenReadable(path, io_context_, &file)); |
| 252 | return file; |
| 253 | } |
| 254 | |
| 255 | Result<std::shared_ptr<io::RandomAccessFile>> OpenInputFile(const std::string& path) { |
| 256 | ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(path)); |
nothing calls this directly
no test coverage detected