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

Function garrow_map_array_get_items

c_glib/arrow-glib/composite-array.cpp:1282–1295  ·  view source on GitHub ↗

* garrow_map_array_get_items: * @array: A #GArrowMapArray. * * Returns: (transfer full): The items Array containing item values. * * Since: 0.17.0 */

Source from the content-addressed store, hash-verified

1280 * Since: 0.17.0
1281 */
1282GArrowArray *
1283garrow_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
1297typedef struct GArrowUnionArrayPrivate_
1298{

Callers

nothing calls this directly

Calls 2

garrow_array_new_rawFunction · 0.85
garrow_array_get_rawFunction · 0.70

Tested by

no test coverage detected