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

Method UpdateArrayImpl

cpp/src/parquet/geospatial/statistics.cc:266–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

MergeGeometryMethod · 0.80
lengthMethod · 0.45
IsNullMethod · 0.45
GetViewMethod · 0.45

Tested by

no test coverage detected