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