* garrow_chunked_array_get_chunks: * @chunked_array: A #GArrowChunkedArray. * * Returns: (element-type GArrowArray) (transfer full): * The chunks in the chunked array. */
| 333 | * The chunks in the chunked array. |
| 334 | */ |
| 335 | GList * |
| 336 | garrow_chunked_array_get_chunks(GArrowChunkedArray *chunked_array) |
| 337 | { |
| 338 | const auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array); |
| 339 | |
| 340 | GList *chunks = NULL; |
| 341 | for (auto arrow_chunk : arrow_chunked_array->chunks()) { |
| 342 | GArrowArray *chunk = garrow_array_new_raw(&arrow_chunk); |
| 343 | chunks = g_list_prepend(chunks, chunk); |
| 344 | } |
| 345 | |
| 346 | return g_list_reverse(chunks); |
| 347 | } |
| 348 | |
| 349 | /** |
| 350 | * garrow_chunked_array_slice: |
nothing calls this directly
no test coverage detected