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

Method OpenOutputStream

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

Source from the content-addressed store, hash-verified

170}
171
172Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenOutputStream(
173 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {
174 std::shared_ptr<io::OutputStream> stream;
175 auto st = SafeCallIntoPython([&]() -> Status {
176 vtable_.open_output_stream(handler_.obj(), path, metadata, &stream);
177 return CheckPyError();
178 });
179 RETURN_NOT_OK(st);
180 return stream;
181}
182
183Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenAppendStream(
184 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_output_streamMethod · 0.45

Tested by

no test coverage detected