* garrow_chunked_array_combine: * @chunked_array: A #GArrowChunkedArray. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (nullable) (transfer full): The combined array that has * all data in all chunks. * * Since: 4.0.0 */
| 397 | * Since: 4.0.0 |
| 398 | */ |
| 399 | GArrowArray * |
| 400 | garrow_chunked_array_combine(GArrowChunkedArray *chunked_array, GError **error) |
| 401 | { |
| 402 | const auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 403 | auto arrow_combined_array = arrow::Concatenate(arrow_chunked_array->chunks()); |
| 404 | if (garrow::check(error, arrow_combined_array, "[chunked-array][combine]")) { |
| 405 | return garrow_array_new_raw(&(*arrow_combined_array)); |
| 406 | } else { |
| 407 | return NULL; |
| 408 | } |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * garrow_chunked_array_import: |
nothing calls this directly
no test coverage detected