* 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 */
| 1330 | * Since: 20.0.0 |
| 1331 | */ |
| 1332 | GArrowArrayStatistics * |
| 1333 | garrow_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 | |
| 1344 | G_DEFINE_TYPE(GArrowNullArray, garrow_null_array, GARROW_TYPE_ARRAY) |
| 1345 |
nothing calls this directly
no test coverage detected