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

Method OpenInputStream

cpp/src/arrow/filesystem/hdfs.cc:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));

Callers

nothing calls this directly

Calls 2

AssertNoTrailingSlashFunction · 0.85
OpenReadableMethod · 0.45

Tested by

no test coverage detected