| 86 | } |
| 87 | |
| 88 | void DictionaryArray::SetData(const std::shared_ptr<ArrayData>& data) { |
| 89 | this->Array::SetData(data); |
| 90 | auto indices_data = data_->Copy(); |
| 91 | indices_data->type = dict_type_->index_type(); |
| 92 | indices_data->dictionary = nullptr; |
| 93 | indices_ = MakeArray(indices_data); |
| 94 | } |
| 95 | |
| 96 | DictionaryArray::DictionaryArray(const std::shared_ptr<DataType>& type, |
| 97 | const std::shared_ptr<Array>& indices, |
nothing calls this directly
no test coverage detected