| 315 | } // namespace |
| 316 | |
| 317 | Result<std::shared_ptr<Array>> DictionaryArray::Transpose( |
| 318 | const std::shared_ptr<DataType>& type, const std::shared_ptr<Array>& dictionary, |
| 319 | const int32_t* transpose_map, MemoryPool* pool) const { |
| 320 | ARROW_ASSIGN_OR_RAISE(auto transposed, |
| 321 | TransposeDictIndices(data_, data_->type, type, dictionary->data(), |
| 322 | transpose_map, pool)); |
| 323 | return MakeArray(std::move(transposed)); |
| 324 | } |
| 325 | |
| 326 | Result<std::shared_ptr<Array>> DictionaryArray::Compact(MemoryPool* pool) const { |
| 327 | std::shared_ptr<Array> compact_dictionary; |