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

Function garrow_array_get_statistics

c_glib/arrow-glib/basic-array.cpp:1332–1342  ·  view source on GitHub ↗

* garrow_array_get_statistics: * @array: A #GArrowArray. * * Returns: (transfer full): The associated #GArrowArrayStatistics of @array, * %NULL if @array doesn't have any associated statistics. * * Since: 20.0.0 */

Source from the content-addressed store, hash-verified

1330 * Since: 20.0.0
1331 */
1332GArrowArrayStatistics *
1333garrow_array_get_statistics(GArrowArray *array)
1334{
1335 const auto arrow_array = garrow_array_get_raw(array);
1336 const auto &statistics = arrow_array->statistics();
1337 if (statistics) {
1338 return garrow_array_statistics_new_raw(statistics.get());
1339 } else {
1340 return nullptr;
1341 }
1342}
1343
1344G_DEFINE_TYPE(GArrowNullArray, garrow_null_array, GARROW_TYPE_ARRAY)
1345

Callers

nothing calls this directly

Calls 4

garrow_array_get_rawFunction · 0.70
statisticsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected