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

Method FieldBuilders

cpp/src/arrow/builder.cc:303–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301 }
302
303 Result<std::vector<std::shared_ptr<ArrayBuilder>>> FieldBuilders(const DataType& type,
304 MemoryPool* pool) {
305 std::vector<std::shared_ptr<ArrayBuilder>> field_builders;
306 for (const auto& field : type.fields()) {
307 std::unique_ptr<ArrayBuilder> builder;
308 MakeBuilderImpl impl{pool, field->type(), exact_index_type, /*out=*/nullptr};
309 RETURN_NOT_OK(VisitTypeInline(*field->type(), &impl));
310 field_builders.emplace_back(std::move(impl.out));
311 }
312 return field_builders;
313 }
314
315 MemoryPool* pool;
316 const std::shared_ptr<DataType>& type;

Callers

nothing calls this directly

Calls 4

VisitTypeInlineFunction · 0.85
emplace_backMethod · 0.80
fieldsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected