* garrow_array_builder_finish: * @builder: A #GArrowArrayBuilder. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: (transfer full): The built #GArrowArray on success, * %NULL on error. */
| 619 | * %NULL on error. |
| 620 | */ |
| 621 | GArrowArray * |
| 622 | garrow_array_builder_finish(GArrowArrayBuilder *builder, GError **error) |
| 623 | { |
| 624 | auto arrow_builder = garrow_array_builder_get_raw(builder); |
| 625 | std::shared_ptr<arrow::Array> arrow_array; |
| 626 | auto status = arrow_builder->Finish(&arrow_array); |
| 627 | if (garrow_error_check(error, status, "[array-builder][finish]")) { |
| 628 | return garrow_array_new_raw(&arrow_array); |
| 629 | } else { |
| 630 | return NULL; |
| 631 | } |
| 632 | } |
| 633 | |
| 634 | /** |
| 635 | * garrow_array_builder_reset: |
no test coverage detected