* garrow_chunked_array_take_chunked_array: * @chunked_array: A #GArrowChunkedArray. * @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:
| 5518 | * Since: 0.16.0 |
| 5519 | */ |
| 5520 | GArrowChunkedArray * |
| 5521 | garrow_chunked_array_take_chunked_array(GArrowChunkedArray *chunked_array, |
| 5522 | GArrowChunkedArray *indices, |
| 5523 | GArrowTakeOptions *options, |
| 5524 | GError **error) |
| 5525 | { |
| 5526 | auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 5527 | auto arrow_indices = garrow_chunked_array_get_raw(indices); |
| 5528 | return garrow_take( |
| 5529 | arrow::Datum(arrow_chunked_array), |
| 5530 | arrow::Datum(arrow_indices), |
| 5531 | options, |
| 5532 | [](arrow::Datum arrow_datum) { |
| 5533 | auto arrow_taken_chunked_array = arrow_datum.chunked_array(); |
| 5534 | return garrow_chunked_array_new_raw(&arrow_taken_chunked_array); |
| 5535 | }, |
| 5536 | error, |
| 5537 | "[chunked-array][take][chunked-array]"); |
| 5538 | } |
| 5539 | |
| 5540 | /** |
| 5541 | * garrow_record_batch_take: |
nothing calls this directly
no test coverage detected