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

Method OpenInputStream

python/pyarrow/src/arrow/python/filesystem.cc:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150Result<std::shared_ptr<io::InputStream>> PyFileSystem::OpenInputStream(
151 const std::string& path) {
152 std::shared_ptr<io::InputStream> stream;
153 auto st = SafeCallIntoPython([&]() -> Status {
154 vtable_.open_input_stream(handler_.obj(), path, &stream);
155 return CheckPyError();
156 });
157 RETURN_NOT_OK(st);
158 return stream;
159}
160
161Result<std::shared_ptr<io::RandomAccessFile>> PyFileSystem::OpenInputFile(
162 const std::string& path) {

Callers

nothing calls this directly

Calls 3

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
open_input_streamMethod · 0.45

Tested by

no test coverage detected