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

Method Update

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

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

ParquetExceptionFunction · 0.85
MergeGeometryMethod · 0.80
type_idMethod · 0.45
ToStringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected