* 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 */
| 5486 | * Since: 0.16.0 |
| 5487 | */ |
| 5488 | GArrowChunkedArray * |
| 5489 | garrow_chunked_array_take(GArrowChunkedArray *chunked_array, |
| 5490 | GArrowArray *indices, |
| 5491 | GArrowTakeOptions *options, |
| 5492 | GError **error) |
| 5493 | { |
| 5494 | auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 5495 | auto arrow_indices = garrow_array_get_raw(indices); |
| 5496 | return garrow_take( |
| 5497 | arrow::Datum(arrow_chunked_array), |
| 5498 | arrow::Datum(arrow_indices), |
| 5499 | options, |
| 5500 | [](arrow::Datum arrow_datum) { |
| 5501 | auto arrow_taken_chunked_array = arrow_datum.chunked_array(); |
| 5502 | return garrow_chunked_array_new_raw(&arrow_taken_chunked_array); |
| 5503 | }, |
| 5504 | error, |
| 5505 | "[chunked-array][take]"); |
| 5506 | } |
| 5507 | |
| 5508 | /** |
| 5509 | * garrow_chunked_array_take_chunked_array: |
nothing calls this directly
no test coverage detected