| 548 | } |
| 549 | |
| 550 | Status FinishInternal(std::shared_ptr<ArrayData>* out) override { |
| 551 | std::shared_ptr<ArrayData> dictionary; |
| 552 | ARROW_RETURN_NOT_OK(FinishWithDictOffset(/*offset=*/0, out, &dictionary)); |
| 553 | |
| 554 | // Set type of array data to the right dictionary type |
| 555 | (*out)->type = type(); |
| 556 | (*out)->dictionary = dictionary; |
| 557 | return Status::OK(); |
| 558 | } |
| 559 | |
| 560 | Status FinishWithDictOffset(int64_t dict_offset, |
| 561 | std::shared_ptr<ArrayData>* out_indices, |
no test coverage detected