* garrow_map_array_get_items: * @array: A #GArrowMapArray. * * Returns: (transfer full): The items Array containing item values. * * Since: 0.17.0 */
| 1280 | * Since: 0.17.0 |
| 1281 | */ |
| 1282 | GArrowArray * |
| 1283 | garrow_map_array_get_items(GArrowMapArray *array) |
| 1284 | { |
| 1285 | auto priv = GARROW_MAP_ARRAY_GET_PRIVATE(array); |
| 1286 | if (priv->items) { |
| 1287 | g_object_ref(priv->items); |
| 1288 | return priv->items; |
| 1289 | } |
| 1290 | |
| 1291 | auto arrow_array = garrow_array_get_raw(GARROW_ARRAY(array)); |
| 1292 | auto arrow_map_array = std::static_pointer_cast<arrow::MapArray>(arrow_array); |
| 1293 | auto arrow_items = arrow_map_array->items(); |
| 1294 | return garrow_array_new_raw(&arrow_items); |
| 1295 | } |
| 1296 | |
| 1297 | typedef struct GArrowUnionArrayPrivate_ |
| 1298 | { |
nothing calls this directly
no test coverage detected