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

Function Merge

cpp/src/parquet/geospatial/util_internal.h:135–146  ·  view source on GitHub ↗

\brief Update these bounds such they also contain other

Source from the content-addressed store, hash-verified

133
134 /// \brief Update these bounds such they also contain other
135 void Merge(const BoundingBox& other) {
136 for (int i = 0; i < 4; i++) {
137 if (std::isnan(min[i]) || std::isnan(max[i]) || std::isnan(other.min[i]) ||
138 std::isnan(other.max[i])) {
139 min[i] = std::numeric_limits<double>::quiet_NaN();
140 max[i] = std::numeric_limits<double>::quiet_NaN();
141 } else {
142 min[i] = std::min(min[i], other.min[i]);
143 max[i] = std::max(max[i], other.max[i]);
144 }
145 }
146 }
147
148 std::string ToString() const;
149

Callers 5

AreCompatibleMethod · 0.85
TESTFunction · 0.85
OutputResultMethod · 0.85
MergeFromMethod · 0.85
MergeInternalMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68