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

Function garrow_function_set_property

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

Source from the content-addressed store, hash-verified

726}
727
728static void
729garrow_function_set_property(GObject *object,
730 guint prop_id,
731 const GValue *value,
732 GParamSpec *pspec)
733{
734 auto priv = GARROW_FUNCTION_GET_PRIVATE(object);
735
736 switch (prop_id) {
737 case PROP_FUNCTION:
738 priv->function = *static_cast<std::shared_ptr<arrow::compute::Function> *>(
739 g_value_get_pointer(value));
740 {
741 const auto &arrow_name = priv->function->name();
742 priv->name = g_strndup(arrow_name.data(), arrow_name.length());
743 }
744 break;
745 default:
746 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
747 break;
748 }
749}
750
751static void
752garrow_function_init(GArrowFunction *object)

Callers

nothing calls this directly

Calls 3

nameMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected