| 393 | } |
| 394 | |
| 395 | Status LoadChildren(const std::vector<std::shared_ptr<Field>>& child_fields) { |
| 396 | DCHECK_NE(out_, nullptr); |
| 397 | ArrayData* parent = out_; |
| 398 | |
| 399 | parent->child_data.resize(child_fields.size()); |
| 400 | for (int i = 0; i < static_cast<int>(child_fields.size()); ++i) { |
| 401 | parent->child_data[i] = std::make_shared<ArrayData>(); |
| 402 | --max_recursion_depth_; |
| 403 | RETURN_NOT_OK(Load(child_fields[i].get(), parent->child_data[i].get())); |
| 404 | ++max_recursion_depth_; |
| 405 | } |
| 406 | out_ = parent; |
| 407 | return Status::OK(); |
| 408 | } |
| 409 | |
| 410 | Status Visit(const NullType& type) { |
| 411 | out_->buffers.resize(1); |