* garrow_table_sort_indices: * @table: A #GArrowTable. * @options: The options to be used. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The indices that would sort * a table with the specified options on success, %NULL on error. * * Since: 3.0.0 */
| 5816 | * Since: 3.0.0 |
| 5817 | */ |
| 5818 | GArrowUInt64Array * |
| 5819 | garrow_table_sort_indices(GArrowTable *table, GArrowSortOptions *options, GError **error) |
| 5820 | { |
| 5821 | auto arrow_table = garrow_table_get_raw(table); |
| 5822 | auto arrow_table_raw = arrow_table.get(); |
| 5823 | auto arrow_options = garrow_sort_options_get_raw(options); |
| 5824 | auto arrow_indices_array = |
| 5825 | arrow::compute::SortIndices(::arrow::Datum(*arrow_table_raw), *arrow_options); |
| 5826 | if (garrow::check(error, arrow_indices_array, "[table][sort-indices]")) { |
| 5827 | return GARROW_UINT64_ARRAY(garrow_array_new_raw(&(*arrow_indices_array))); |
| 5828 | } else { |
| 5829 | return NULL; |
| 5830 | } |
| 5831 | } |
| 5832 | |
| 5833 | /** |
| 5834 | * garrow_table_filter: |
nothing calls this directly
no test coverage detected