| 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; |
nothing calls this directly
no test coverage detected