* garrow_chunked_array_take: * @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 input array or %NULL on error. * * Since: 0.16.0 */
| 5531 | * Since: 0.16.0 |
| 5532 | */ |
| 5533 | GArrowChunkedArray * |
| 5534 | garrow_chunked_array_take(GArrowChunkedArray *chunked_array, |
| 5535 | GArrowArray *indices, |
| 5536 | GArrowTakeOptions *options, |
| 5537 | GError **error) |
| 5538 | { |
| 5539 | auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 5540 | auto arrow_indices = garrow_array_get_raw(indices); |
| 5541 | return garrow_take( |
| 5542 | arrow::Datum(arrow_chunked_array), |
| 5543 | arrow::Datum(arrow_indices), |
| 5544 | options, |
| 5545 | [](arrow::Datum arrow_datum) { |
| 5546 | auto arrow_taken_chunked_array = arrow_datum.chunked_array(); |
| 5547 | return garrow_chunked_array_new_raw(&arrow_taken_chunked_array); |
| 5548 | }, |
| 5549 | error, |
| 5550 | "[chunked-array][take]"); |
| 5551 | } |
| 5552 | |
| 5553 | /** |
| 5554 | * garrow_chunked_array_take_chunked_array: |
nothing calls this directly
no test coverage detected