* garrow_array_take_chunked_array: * @array: A #GArrowArray. * @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 #GArrowChunkedArray taken from * an array of values at indices in chunked array or %NULL on error. * * Since: 0.16.0 */
| 5435 | * Since: 0.16.0 |
| 5436 | */ |
| 5437 | GArrowChunkedArray * |
| 5438 | garrow_array_take_chunked_array(GArrowArray *array, |
| 5439 | GArrowChunkedArray *indices, |
| 5440 | GArrowTakeOptions *options, |
| 5441 | GError **error) |
| 5442 | { |
| 5443 | auto arrow_array = garrow_array_get_raw(array); |
| 5444 | auto arrow_indices = garrow_chunked_array_get_raw(indices); |
| 5445 | return garrow_take( |
| 5446 | arrow::Datum(arrow_array), |
| 5447 | arrow::Datum(arrow_indices), |
| 5448 | options, |
| 5449 | [](arrow::Datum arrow_datum) { |
| 5450 | auto arrow_taken_chunked_array = arrow_datum.chunked_array(); |
| 5451 | return garrow_chunked_array_new_raw(&arrow_taken_chunked_array); |
| 5452 | }, |
| 5453 | error, |
| 5454 | "[array][take][chunked-array]"); |
| 5455 | } |
| 5456 | |
| 5457 | /** |
| 5458 | * garrow_table_take: |
nothing calls this directly
no test coverage detected