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

Function garrow_schema_with_metadata

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

* garrow_schema_with_metadata: * @schema: A #GArrowSchema. * @metadata: (element-type utf8 utf8): A new associated metadata. * * Returns: (transfer full): The new schema with the given metadata. * * Since: 0.17.0 */

Source from the content-addressed store, hash-verified

458 * Since: 0.17.0
459 */
460GArrowSchema *
461garrow_schema_with_metadata(GArrowSchema *schema, GHashTable *metadata)
462{
463 const auto arrow_schema = garrow_schema_get_raw(schema);
464 auto arrow_metadata = garrow_internal_hash_table_to_metadata(metadata);
465 auto arrow_new_schema = arrow_schema->WithMetadata(arrow_metadata);
466 return garrow_schema_new_raw(&arrow_new_schema);
467}
468
469G_END_DECLS
470

Callers

nothing calls this directly

Calls 3

garrow_schema_get_rawFunction · 0.85
WithMetadataMethod · 0.45

Tested by

no test coverage detected