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

Method OpenAppendStream

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

Source from the content-addressed store, hash-verified

181}
182
183Result<std::shared_ptr<io::OutputStream>> PyFileSystem::OpenAppendStream(
184 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {
185 std::shared_ptr<io::OutputStream> stream;
186 auto st = SafeCallIntoPython([&]() -> Status {
187 vtable_.open_append_stream(handler_.obj(), path, metadata, &stream);
188 return CheckPyError();
189 });
190 RETURN_NOT_OK(st);
191 return stream;
192}
193
194Result<std::string> PyFileSystem::NormalizePath(std::string path) {
195 std::string normalized;

Callers

nothing calls this directly

Calls 3

SafeCallIntoPythonFunction · 0.85
CheckPyErrorFunction · 0.85
open_append_streamMethod · 0.45

Tested by

no test coverage detected