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

Method Equals

cpp/src/arrow/dataset/file_base.cc:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool FileSource::Equals(const FileSource& other) const {
137 bool match_file_system =
138 (filesystem_ == nullptr && other.filesystem_ == nullptr) ||
139 (filesystem_ && other.filesystem_ && filesystem_->Equals(other.filesystem_));
140 bool match_buffer = (buffer_ == nullptr && other.buffer_ == nullptr) ||
141 ((buffer_ != nullptr && other.buffer_ != nullptr) &&
142 (buffer_->address() == other.buffer_->address()));
143 return match_file_system && match_buffer && file_info_.Equals(other.file_info_) &&
144 compression_ == other.compression_;
145}
146
147Future<std::optional<int64_t>> FileFormat::CountRows(
148 const std::shared_ptr<FileFragment>&, compute::Expression,

Callers 1

MakeWriteNodeFunction · 0.45

Calls 1

addressMethod · 0.80

Tested by

no test coverage detected