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

Method FieldBuilders

cpp/src/arrow/builder.cc:297–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 }
296
297 Result<std::vector<std::shared_ptr<ArrayBuilder>>> FieldBuilders(const DataType& type,
298 MemoryPool* pool) {
299 std::vector<std::shared_ptr<ArrayBuilder>> field_builders;
300 for (const auto& field : type.fields()) {
301 std::unique_ptr<ArrayBuilder> builder;
302 MakeBuilderImpl impl{pool, field->type(), exact_index_type, /*out=*/nullptr};
303 RETURN_NOT_OK(VisitTypeInline(*field->type(), &impl));
304 field_builders.emplace_back(std::move(impl.out));
305 }
306 return field_builders;
307 }
308
309 MemoryPool* pool;
310 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