* garrow_function_find: * @name: A function name to be found. * * Returns: (transfer full): * The found #GArrowFunction or %NULL on not found. * * Since: 1.0.0 */
| 782 | * Since: 1.0.0 |
| 783 | */ |
| 784 | GArrowFunction * |
| 785 | garrow_function_find(const gchar *name) |
| 786 | { |
| 787 | auto arrow_function_registry = arrow::compute::GetFunctionRegistry(); |
| 788 | auto arrow_function_result = arrow_function_registry->GetFunction(name); |
| 789 | if (!arrow_function_result.ok()) { |
| 790 | return NULL; |
| 791 | } |
| 792 | auto arrow_function = *arrow_function_result; |
| 793 | return garrow_function_new_raw(&arrow_function); |
| 794 | } |
| 795 | |
| 796 | /** |
| 797 | * garrow_function_all: |
nothing calls this directly
no test coverage detected