| 534 | } |
| 535 | |
| 536 | Status FinishInternal(std::shared_ptr<ArrayData>* out) override { |
| 537 | std::shared_ptr<ArrayData> dictionary; |
| 538 | ARROW_RETURN_NOT_OK(FinishWithDictOffset(/*offset=*/0, out, &dictionary)); |
| 539 | |
| 540 | // Set type of array data to the right dictionary type |
| 541 | (*out)->type = type(); |
| 542 | (*out)->dictionary = dictionary; |
| 543 | return Status::OK(); |
| 544 | } |
| 545 | |
| 546 | Status FinishWithDictOffset(int64_t dict_offset, |
| 547 | std::shared_ptr<ArrayData>* out_indices, |
no test coverage detected