* 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:
| 5563 | * Since: 0.16.0 |
| 5564 | */ |
| 5565 | GArrowChunkedArray * |
| 5566 | garrow_chunked_array_take_chunked_array(GArrowChunkedArray *chunked_array, |
| 5567 | GArrowChunkedArray *indices, |
| 5568 | GArrowTakeOptions *options, |
| 5569 | GError **error) |
| 5570 | { |
| 5571 | auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 5572 | auto arrow_indices = garrow_chunked_array_get_raw(indices); |
| 5573 | return garrow_take( |
| 5574 | arrow::Datum(arrow_chunked_array), |
| 5575 | arrow::Datum(arrow_indices), |
| 5576 | options, |
| 5577 | [](arrow::Datum arrow_datum) { |
| 5578 | auto arrow_taken_chunked_array = arrow_datum.chunked_array(); |
| 5579 | return garrow_chunked_array_new_raw(&arrow_taken_chunked_array); |
| 5580 | }, |
| 5581 | error, |
| 5582 | "[chunked-array][take][chunked-array]"); |
| 5583 | } |
| 5584 | |
| 5585 | /** |
| 5586 | * garrow_record_batch_take: |
nothing calls this directly
no test coverage detected