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

Method FieldBuilders

cpp/src/arrow/builder.cc:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338 }
339
340 Result<std::vector<std::shared_ptr<ArrayBuilder>>> FieldBuilders(const DataType& type,
341 MemoryPool* pool) {
342 std::vector<std::shared_ptr<ArrayBuilder>> field_builders;
343 for (const auto& field : type.fields()) {
344 std::unique_ptr<ArrayBuilder> builder;
345 MakeBuilderImpl impl{pool, field->type(), exact_index_type, /*out=*/nullptr};
346 RETURN_NOT_OK(VisitTypeInline(*field->type(), &impl));
347 field_builders.emplace_back(std::move(impl.out));
348 }
349 return field_builders;
350 }
351
352 MemoryPool* pool;
353 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