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

Function garrow_array_builder_finish

c_glib/arrow-glib/array-builder.cpp:621–632  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

619 * %NULL on error.
620 */
621GArrowArray *
622garrow_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:

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 4

garrow_error_checkFunction · 0.85
garrow_array_new_rawFunction · 0.85
FinishMethod · 0.45

Tested by

no test coverage detected