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