* garrow_table_take_chunked_array: * @table: A #GArrowTable. * @indices: The indices of values to take. * @options: (nullable): A #GArrowTakeOptions. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The #GArrowTable taken from * an array of values at indices in chunked array or %NULL on error. * * Since: 0.16.0 */
| 5454 | * Since: 0.16.0 |
| 5455 | */ |
| 5456 | GArrowTable * |
| 5457 | garrow_table_take_chunked_array(GArrowTable *table, |
| 5458 | GArrowChunkedArray *indices, |
| 5459 | GArrowTakeOptions *options, |
| 5460 | GError **error) |
| 5461 | { |
| 5462 | auto arrow_table = garrow_table_get_raw(table); |
| 5463 | auto arrow_indices = garrow_chunked_array_get_raw(indices); |
| 5464 | return garrow_take( |
| 5465 | arrow::Datum(arrow_table), |
| 5466 | arrow::Datum(arrow_indices), |
| 5467 | options, |
| 5468 | [](arrow::Datum arrow_datum) { |
| 5469 | auto arrow_taken_table = arrow_datum.table(); |
| 5470 | return garrow_table_new_raw(&arrow_taken_table); |
| 5471 | }, |
| 5472 | error, |
| 5473 | "[table][take][chunked-array]"); |
| 5474 | } |
| 5475 | |
| 5476 | /** |
| 5477 | * garrow_chunked_array_take: |
nothing calls this directly
no test coverage detected