* garrow_int_array_builder_new: * * Returns: A newly created #GArrowIntArrayBuilder. * * Since: 0.6.0 */
| 1119 | * Since: 0.6.0 |
| 1120 | */ |
| 1121 | GArrowIntArrayBuilder * |
| 1122 | garrow_int_array_builder_new(void) |
| 1123 | { |
| 1124 | auto memory_pool = arrow::default_memory_pool(); |
| 1125 | auto arrow_builder = std::static_pointer_cast<arrow::ArrayBuilder>( |
| 1126 | std::make_shared<arrow::AdaptiveIntBuilder>(memory_pool)); |
| 1127 | auto builder = |
| 1128 | garrow_array_builder_new_raw(&arrow_builder, GARROW_TYPE_INT_ARRAY_BUILDER); |
| 1129 | return GARROW_INT_ARRAY_BUILDER(builder); |
| 1130 | } |
| 1131 | |
| 1132 | /** |
| 1133 | * garrow_int_array_builder_append: |
nothing calls this directly
no test coverage detected