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

Method OpenInputFile

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

Source from the content-addressed store, hash-verified

159}
160
161Result<std::shared_ptr<io::RandomAccessFile>> PyFileSystem::OpenInputFile(
162 const std::string& path) {
163 std::shared_ptr<io::RandomAccessFile> stream;
164 auto st = SafeCallIntoPython([&]() -> Status {
165 vtable_.open_input_file(handler_.obj(), path, &stream);
166 return CheckPyError();
167 });
168 RETURN_NOT_OK(st);
169 return stream;
170}
171
172Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenOutputStream(
173 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {

Callers

nothing calls this directly

Calls 3

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
open_input_fileMethod · 0.45

Tested by

no test coverage detected