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

Function garrow_field_import

c_glib/arrow-glib/field.cpp:145–154  ·  view source on GitHub ↗

* garrow_field_import: * @c_abi_schema: (not nullable): A `struct ArrowSchema *`. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full) (nullable): An imported #GArrowField on success, * %NULL on error. * * You don't need to release the passed `struct ArrowSchema *`, * even if this function reports an error. * * Since: 6.0.0 */

Source from the content-addressed store, hash-verified

143 * Since: 6.0.0
144 */
145GArrowField *
146garrow_field_import(gpointer c_abi_schema, GError **error)
147{
148 auto arrow_field_result = arrow::ImportField(static_cast<ArrowSchema *>(c_abi_schema));
149 if (garrow::check(error, arrow_field_result, "[field][import]")) {
150 return garrow_field_new_raw(&(*arrow_field_result), nullptr);
151 } else {
152 return NULL;
153 }
154}
155
156/**
157 * garrow_field_new:

Callers

nothing calls this directly

Calls 2

checkFunction · 0.70
ImportFieldFunction · 0.50

Tested by

no test coverage detected