| 264 | |
| 265 | template <typename ArrayType> |
| 266 | void UpdateArrayImpl(const ::arrow::Array& values) { |
| 267 | const auto& binary_array = static_cast<const ArrayType&>(values); |
| 268 | for (int64_t i = 0; i < binary_array.length(); ++i) { |
| 269 | if (!binary_array.IsNull(i)) { |
| 270 | try { |
| 271 | bounder_.MergeGeometry(binary_array.GetView(i)); |
| 272 | } catch (ParquetException&) { |
| 273 | is_valid_ = false; |
| 274 | return; |
| 275 | } |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // The Parquet specification allows X bounds to be "wraparound" to allow for |
| 281 | // more compact bounding boxes when a geometry happens to include components |
nothing calls this directly
no test coverage detected