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

Method OpenOutputStream

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

Source from the content-addressed store, hash-verified

730}
731
732Result<std::shared_ptr<io::OutputStream>> MockFileSystem::OpenOutputStream(
733 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {
734 RETURN_NOT_OK(ValidatePath(path));
735 auto guard = impl_->lock_guard();
736
737 return impl_->OpenOutputStream(path, /*append=*/false, metadata);
738}
739
740Result<std::shared_ptr<io::OutputStream>> MockFileSystem::OpenAppendStream(
741 const std::string& path, const std::shared_ptr<const KeyValueMetadata>& metadata) {

Callers 1

OpenAppendStreamMethod · 0.45

Calls 2

lock_guardMethod · 0.80
ValidatePathFunction · 0.70

Tested by

no test coverage detected