| 79 | } |
| 80 | |
| 81 | DictionaryArray::DictionaryArray(const std::shared_ptr<ArrayData>& data) |
| 82 | : dict_type_(checked_cast<const DictionaryType*>(data->type.get())) { |
| 83 | ARROW_CHECK_EQ(data->type->id(), Type::DICTIONARY); |
| 84 | ARROW_CHECK_NE(data->dictionary, nullptr); |
| 85 | SetData(data); |
| 86 | } |
| 87 | |
| 88 | void DictionaryArray::SetData(const std::shared_ptr<ArrayData>& data) { |
| 89 | this->Array::SetData(data); |
nothing calls this directly
no test coverage detected