* 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 */
| 5499 | * Since: 0.16.0 |
| 5500 | */ |
| 5501 | GArrowTable * |
| 5502 | garrow_table_take_chunked_array(GArrowTable *table, |
| 5503 | GArrowChunkedArray *indices, |
| 5504 | GArrowTakeOptions *options, |
| 5505 | GError **error) |
| 5506 | { |
| 5507 | auto arrow_table = garrow_table_get_raw(table); |
| 5508 | auto arrow_indices = garrow_chunked_array_get_raw(indices); |
| 5509 | return garrow_take( |
| 5510 | arrow::Datum(arrow_table), |
| 5511 | arrow::Datum(arrow_indices), |
| 5512 | options, |
| 5513 | [](arrow::Datum arrow_datum) { |
| 5514 | auto arrow_taken_table = arrow_datum.table(); |
| 5515 | return garrow_table_new_raw(&arrow_taken_table); |
| 5516 | }, |
| 5517 | error, |
| 5518 | "[table][take][chunked-array]"); |
| 5519 | } |
| 5520 | |
| 5521 | /** |
| 5522 | * garrow_chunked_array_take: |
nothing calls this directly
no test coverage detected