| 10856 | } |
| 10857 | |
| 10858 | GArrowFunctionOptions * |
| 10859 | garrow_function_options_new_raw(const arrow::compute::FunctionOptions *arrow_options) |
| 10860 | { |
| 10861 | std::string_view arrow_type_name(arrow_options->type_name()); |
| 10862 | if (arrow_type_name == "CastOptions") { |
| 10863 | auto arrow_cast_options = |
| 10864 | static_cast<const arrow::compute::CastOptions *>(arrow_options); |
| 10865 | auto options = garrow_cast_options_new_raw(arrow_cast_options); |
| 10866 | return GARROW_FUNCTION_OPTIONS(options); |
| 10867 | } else if (arrow_type_name == "ScalarAggregateOptions") { |
| 10868 | const auto arrow_scalar_aggregate_options = |
| 10869 | static_cast<const arrow::compute::ScalarAggregateOptions *>(arrow_options); |
| 10870 | auto options = |
| 10871 | garrow_scalar_aggregate_options_new_raw(arrow_scalar_aggregate_options); |
| 10872 | return GARROW_FUNCTION_OPTIONS(options); |
| 10873 | } else if (arrow_type_name == "CountOptions") { |
| 10874 | const auto arrow_count_options = |
| 10875 | static_cast<const arrow::compute::CountOptions *>(arrow_options); |
| 10876 | auto options = garrow_count_options_new_raw(arrow_count_options); |
| 10877 | return GARROW_FUNCTION_OPTIONS(options); |
| 10878 | } else if (arrow_type_name == "FilterOptions") { |
| 10879 | const auto arrow_filter_options = |
| 10880 | static_cast<const arrow::compute::FilterOptions *>(arrow_options); |
| 10881 | auto options = garrow_filter_options_new_raw(arrow_filter_options); |
| 10882 | return GARROW_FUNCTION_OPTIONS(options); |
| 10883 | } else if (arrow_type_name == "TakeOptions") { |
| 10884 | const auto arrow_take_options = |
| 10885 | static_cast<const arrow::compute::TakeOptions *>(arrow_options); |
| 10886 | auto options = garrow_take_options_new_raw(arrow_take_options); |
| 10887 | return GARROW_FUNCTION_OPTIONS(options); |
| 10888 | } else if (arrow_type_name == "ArraySortOptions") { |
| 10889 | const auto arrow_array_sort_options = |
| 10890 | static_cast<const arrow::compute::ArraySortOptions *>(arrow_options); |
| 10891 | auto options = garrow_array_sort_options_new_raw(arrow_array_sort_options); |
| 10892 | return GARROW_FUNCTION_OPTIONS(options); |
| 10893 | } else if (arrow_type_name == "SortOptions") { |
| 10894 | const auto arrow_sort_options = |
| 10895 | static_cast<const arrow::compute::SortOptions *>(arrow_options); |
| 10896 | auto options = garrow_sort_options_new_raw(arrow_sort_options); |
| 10897 | return GARROW_FUNCTION_OPTIONS(options); |
| 10898 | } else if (arrow_type_name == "SetLookupOptions") { |
| 10899 | const auto arrow_set_lookup_options = |
| 10900 | static_cast<const arrow::compute::SetLookupOptions *>(arrow_options); |
| 10901 | auto options = garrow_set_lookup_options_new_raw(arrow_set_lookup_options); |
| 10902 | return GARROW_FUNCTION_OPTIONS(options); |
| 10903 | } else if (arrow_type_name == "VarianceOptions") { |
| 10904 | const auto arrow_variance_options = |
| 10905 | static_cast<const arrow::compute::VarianceOptions *>(arrow_options); |
| 10906 | auto options = garrow_variance_options_new_raw(arrow_variance_options); |
| 10907 | return GARROW_FUNCTION_OPTIONS(options); |
| 10908 | } else if (arrow_type_name == "RoundOptions") { |
| 10909 | const auto arrow_round_options = |
| 10910 | static_cast<const arrow::compute::RoundOptions *>(arrow_options); |
| 10911 | auto options = garrow_round_options_new_raw(arrow_round_options); |
| 10912 | return GARROW_FUNCTION_OPTIONS(options); |
| 10913 | } else if (arrow_type_name == "RoundToMultipleOptions") { |
| 10914 | const auto arrow_round_to_multiple_options = |
| 10915 | static_cast<const arrow::compute::RoundToMultipleOptions *>(arrow_options); |
no test coverage detected