| 59 | } |
| 60 | |
| 61 | void Update(const ByteArray* values, int64_t num_values) { |
| 62 | if (!is_valid_) { |
| 63 | return; |
| 64 | } |
| 65 | |
| 66 | if (is_wraparound_x()) { |
| 67 | throw ParquetException("Wraparound X is not suppored by GeoStatistics::Update()"); |
| 68 | } |
| 69 | |
| 70 | for (int64_t i = 0; i < num_values; i++) { |
| 71 | const ByteArray& item = values[i]; |
| 72 | try { |
| 73 | bounder_.MergeGeometry({reinterpret_cast<const char*>(item.ptr), item.len}); |
| 74 | } catch (ParquetException&) { |
| 75 | is_valid_ = false; |
| 76 | return; |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | void UpdateSpaced(const ByteArray* values, const uint8_t* valid_bits, |
| 82 | int64_t valid_bits_offset, int64_t num_spaced_values, |
nothing calls this directly
no test coverage detected