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

Method Equals

cpp/src/arrow/filesystem/filesystem.cc:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303bool SubTreeFileSystem::Equals(const FileSystem& other) const {
304 if (this == &other) {
305 return true;
306 }
307 if (other.type_name() != type_name()) {
308 return false;
309 }
310 const auto& subfs = ::arrow::internal::checked_cast<const SubTreeFileSystem&>(other);
311 return base_path_ == subfs.base_path_ && base_fs_->Equals(subfs.base_fs_);
312}
313
314Result<std::string> SubTreeFileSystem::PrependBase(const std::string& s) const {
315 RETURN_NOT_OK(ValidateSubPath(s));

Callers 1

CopyFilesFunction · 0.45

Calls 2

type_nameFunction · 0.70
type_nameMethod · 0.45

Tested by

no test coverage detected