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

Function garrow_schema_get_fields

c_glib/arrow-glib/schema.cpp:283–295  ·  view source on GitHub ↗

* garrow_schema_get_fields: * @schema: A #GArrowSchema. * * Returns: (element-type GArrowField) (transfer full): * The fields of the schema. */

Source from the content-addressed store, hash-verified

281 * The fields of the schema.
282 */
283GList *
284garrow_schema_get_fields(GArrowSchema *schema)
285{
286 const auto arrow_schema = garrow_schema_get_raw(schema);
287
288 GList *fields = NULL;
289 for (auto arrow_field : arrow_schema->fields()) {
290 auto field = garrow_field_new_raw(&arrow_field, nullptr);
291 fields = g_list_prepend(fields, field);
292 }
293
294 return g_list_reverse(fields);
295}
296
297/**
298 * garrow_schema_to_string:

Callers

nothing calls this directly

Calls 2

garrow_schema_get_rawFunction · 0.85
fieldsMethod · 0.45

Tested by

no test coverage detected