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

Function garrow_function_doc_get_arg_names

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

* garrow_function_doc_get_arg_names: * @doc: A #GArrowFunctionDoc. * * Returns: (array zero-terminated=1) (element-type utf8) (transfer full): * Symbolic names (identifiers) for the function arguments. * * It's a %NULL-terminated string array. It must be freed with * g_strfreev() when no longer needed. * * Since: 6.0.0 */

Source from the content-addressed store, hash-verified

668 * Since: 6.0.0
669 */
670gchar **
671garrow_function_doc_get_arg_names(GArrowFunctionDoc *doc)
672{
673 auto arrow_doc = garrow_function_doc_get_raw(doc);
674 const auto &arrow_arg_names = arrow_doc->arg_names;
675 auto n = arrow_arg_names.size();
676 auto arg_names = g_new(gchar *, n + 1);
677 for (size_t i = 0; i < n; ++i) {
678 arg_names[i] = g_strndup(arrow_arg_names[i].data(), arrow_arg_names[i].size());
679 }
680 arg_names[n] = NULL;
681 return arg_names;
682}
683
684/**
685 * garrow_function_doc_get_options_class_name:

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected