| 40 | } |
| 41 | |
| 42 | void Merge(const GeoStatisticsImpl& other) { |
| 43 | is_valid_ = is_valid_ && other.is_valid_; |
| 44 | if (!is_valid_) { |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | // We don't yet support updating wraparound bounds. Rather than throw, |
| 49 | // we just mark the X bounds as invalid such that they are not used. |
| 50 | auto other_bounds = other.bounder_.Bounds(); |
| 51 | if (is_wraparound_x() || other.is_wraparound_x()) { |
| 52 | other_bounds.min[0] = kNaN; |
| 53 | other_bounds.max[0] = kNaN; |
| 54 | } |
| 55 | |
| 56 | bounder_.MergeBox(other_bounds); |
| 57 | std::vector<int32_t> other_geometry_types = other.bounder_.GeometryTypes(); |
| 58 | bounder_.MergeGeometryTypes(other_geometry_types); |
| 59 | } |
| 60 | |
| 61 | void Update(const ByteArray* values, int64_t num_values) { |
| 62 | if (!is_valid_) { |
nothing calls this directly
no test coverage detected