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

Function garrow_struct_array_get_fields

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

* garrow_struct_array_get_fields * @array: A #GArrowStructArray. * * Returns: (element-type GArrowArray) (transfer full): * The fields in the struct. */

Source from the content-addressed store, hash-verified

1032 * The fields in the struct.
1033 */
1034GList *
1035garrow_struct_array_get_fields(GArrowStructArray *array)
1036{
1037 auto fields = garrow_struct_array_get_fields_internal(array);
1038
1039 GList *field_list = NULL;
1040 for (guint i = 0; i < fields->len; ++i) {
1041 auto field = static_cast<GArrowArray *>(g_ptr_array_index(fields, i));
1042 field_list = g_list_prepend(field_list, g_object_ref(field));
1043 }
1044 return g_list_reverse(field_list);
1045}
1046
1047/**
1048 * garrow_struct_array_flatten

Callers

nothing calls this directly

Tested by

no test coverage detected