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

Function garrow_chunked_array_export

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

* garrow_chunked_array_export: * @chunked_array: A #GArrowChunkedArray to be exported. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full) (nullable): An exported chunked array as * `struct ArrowArrayStream *` on success, %NULL on error. * It should be freed with the `ArrowArrayStream::release` callback then * g_free() when no longer needed. *

Source from the content-addressed store, hash-verified

443 * Since: 21.0.0
444 */
445gpointer
446garrow_chunked_array_export(GArrowChunkedArray *chunked_array, GError **error)
447{
448 const auto arrow_chunked_array = garrow_chunked_array_get_raw(chunked_array);
449 auto c_abi_array_stream = g_new(struct ArrowArrayStream, 1);
450 auto status =
451 arrow::ExportChunkedArray(arrow_chunked_array,
452 static_cast<struct ArrowArrayStream *>(c_abi_array_stream));
453 if (garrow::check(error, status, "[chunked-array][export]")) {
454 return c_abi_array_stream;
455 } else {
456 g_free(c_abi_array_stream);
457 return NULL;
458 }
459}
460
461G_END_DECLS
462

Callers

nothing calls this directly

Calls 3

ExportChunkedArrayFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected