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

Function garrow_array_builder_new

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

Source from the content-addressed store, hash-verified

563}
564
565static GArrowArrayBuilder *
566garrow_array_builder_new(const std::shared_ptr<arrow::DataType> &type,
567 GError **error,
568 const char *context)
569{
570 auto memory_pool = arrow::default_memory_pool();
571 std::unique_ptr<arrow::ArrayBuilder> arrow_builder;
572 auto status = arrow::MakeBuilder(memory_pool, type, &arrow_builder);
573 if (!garrow_error_check(error, status, context)) {
574 return nullptr;
575 }
576 std::shared_ptr<arrow::ArrayBuilder> shared_arrow_builder(std::move(arrow_builder));
577 return garrow_array_builder_new_raw(&shared_arrow_builder);
578}
579
580/**
581 * garrow_array_builder_get_value_data_type:

Calls 4

default_memory_poolFunction · 0.85
garrow_error_checkFunction · 0.85
MakeBuilderFunction · 0.50

Tested by

no test coverage detected