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

Method Decode

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

Source from the content-addressed store, hash-verified

181 }
182
183 void Decode(const EncodedGeoStatistics& encoded) {
184 Reset();
185
186 geospatial::BoundingBox box;
187 if (encoded.xy_bounds_present) {
188 box.min[0] = encoded.xmin;
189 box.max[0] = encoded.xmax;
190 box.min[1] = encoded.ymin;
191 box.max[1] = encoded.ymax;
192 } else {
193 box.min[0] = kNaN;
194 box.max[0] = kNaN;
195 box.min[1] = kNaN;
196 box.max[1] = kNaN;
197 }
198
199 if (encoded.z_bounds_present) {
200 box.min[2] = encoded.zmin;
201 box.max[2] = encoded.zmax;
202 } else {
203 box.min[2] = kNaN;
204 box.max[2] = kNaN;
205 }
206
207 if (encoded.m_bounds_present) {
208 box.min[3] = encoded.mmin;
209 box.max[3] = encoded.mmax;
210 } else {
211 box.min[3] = kNaN;
212 box.max[3] = kNaN;
213 }
214
215 bounder_.MergeBox(box);
216 bounder_.MergeGeometryTypes(encoded.geospatial_types);
217 has_geometry_types_ = has_geometry_types_ && encoded.geospatial_types_present();
218 }
219
220 bool is_wraparound_x() const {
221 return is_wraparound(lower_bound()[0], upper_bound()[0]);

Callers

nothing calls this directly

Calls 1

ResetFunction · 0.70

Tested by

no test coverage detected