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

Function garrow_struct_field_options_get_property

c_glib/arrow-glib/compute.cpp:6618–6641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6616}
6617
6618static void
6619garrow_struct_field_options_get_property(GObject *object,
6620 guint prop_id,
6621 GValue *value,
6622 GParamSpec *pspec)
6623{
6624 auto options = garrow_struct_field_options_get_raw(GARROW_STRUCT_FIELD_OPTIONS(object));
6625
6626 switch (prop_id) {
6627 case PROP_STRUCT_FIELD_OPTIONS_FIELD_REF:
6628 {
6629 auto name = options->field_ref.name();
6630 if (name) {
6631 g_value_set_string(value, name->c_str());
6632 } else {
6633 g_value_set_string(value, options->field_ref.ToDotPath().c_str());
6634 }
6635 }
6636 break;
6637 default:
6638 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
6639 break;
6640 }
6641}
6642
6643static void
6644garrow_struct_field_options_init(GArrowStructFieldOptions *object)

Callers

nothing calls this directly

Calls 3

ToDotPathMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected