| 1050 | |
| 1051 | StructArray::~StructArray() = default; |
| 1052 | StructArray::StructArray(const std::shared_ptr<ArrayData>& data) { |
| 1053 | ARROW_CHECK_EQ(data->type->id(), Type::STRUCT); |
| 1054 | SetData(data); |
| 1055 | impl_ = std::make_unique<Impl>(); |
| 1056 | impl_->boxed_fields_.resize(data_->child_data.size()); |
| 1057 | } |
| 1058 | |
| 1059 | StructArray::StructArray(const std::shared_ptr<DataType>& type, int64_t length, |
| 1060 | const std::vector<std::shared_ptr<Array>>& children, |