* 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. *
| 443 | * Since: 21.0.0 |
| 444 | */ |
| 445 | gpointer |
| 446 | garrow_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 | |
| 461 | G_END_DECLS |
| 462 |
nothing calls this directly
no test coverage detected