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

Function garrow_chunked_array_combine

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

* 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 */

Source from the content-addressed store, hash-verified

397 * Since: 4.0.0
398 */
399GArrowArray *
400garrow_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:

Callers

nothing calls this directly

Calls 5

ConcatenateFunction · 0.85
garrow_array_new_rawFunction · 0.85
checkFunction · 0.70
chunksMethod · 0.45

Tested by

no test coverage detected