MCPcopy Create free account
hub / github.com/apache/arrow / garrow_chunked_array_get_chunks

Function garrow_chunked_array_get_chunks

c_glib/arrow-glib/chunked-array.cpp:335–347  ·  view source on GitHub ↗

* garrow_chunked_array_get_chunks: * @chunked_array: A #GArrowChunkedArray. * * Returns: (element-type GArrowArray) (transfer full): * The chunks in the chunked array. */

Source from the content-addressed store, hash-verified

333 * The chunks in the chunked array.
334 */
335GList *
336garrow_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:

Callers

nothing calls this directly

Calls 3

garrow_array_new_rawFunction · 0.85
chunksMethod · 0.45

Tested by

no test coverage detected