* garrow_function_all: * * Returns: (element-type GArrowFunction) (transfer full): * The all available functions. * * It should be freed with g_list_free_full() and g_object_unref() * when no longer needed. * * Since: 7.0.0 */
| 805 | * Since: 7.0.0 |
| 806 | */ |
| 807 | GList * |
| 808 | garrow_function_all(void) |
| 809 | { |
| 810 | auto arrow_function_registry = arrow::compute::GetFunctionRegistry(); |
| 811 | GList *functions = NULL; |
| 812 | for (const auto &arrow_name : arrow_function_registry->GetFunctionNames()) { |
| 813 | auto arrow_function_result = arrow_function_registry->GetFunction(arrow_name); |
| 814 | if (!arrow_function_result.ok()) { |
| 815 | continue; |
| 816 | } |
| 817 | auto arrow_function = *arrow_function_result; |
| 818 | functions = g_list_prepend(functions, garrow_function_new_raw(&arrow_function)); |
| 819 | } |
| 820 | return g_list_reverse(functions); |
| 821 | } |
| 822 | |
| 823 | /** |
| 824 | * garrow_function_execute: |
nothing calls this directly
no test coverage detected