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

Method OpenAppendStream

cpp/src/arrow/filesystem/mockfs.cc:740–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740Result<std::shared_ptr<io::OutputStream>> MockFileSystem::OpenAppendStream(
741 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {
742 ARROW_RETURN_NOT_OK(internal::AssertNoTrailingSlash(path));
743 RETURN_NOT_OK(ValidatePath(path));
744 auto guard = impl_->lock_guard();
745
746 return impl_->OpenOutputStream(path, /*append=*/true, metadata);
747}
748
749std::vector<MockDirInfo> MockFileSystem::AllDirs() {
750 auto guard = impl_->lock_guard();

Callers

nothing calls this directly

Calls 4

AssertNoTrailingSlashFunction · 0.85
lock_guardMethod · 0.80
ValidatePathFunction · 0.70
OpenOutputStreamMethod · 0.45

Tested by

no test coverage detected