| 671 | } |
| 672 | |
| 673 | Status ValueCountsFinalizeDictionary(KernelContext* ctx, std::vector<Datum>* out) { |
| 674 | auto hash = checked_cast<DictionaryHashKernel*>(ctx->state()); |
| 675 | std::shared_ptr<ArrayData> uniques; |
| 676 | ExecResult result; |
| 677 | RETURN_NOT_OK(hash->GetDictionary(&uniques)); |
| 678 | RETURN_NOT_OK(hash->FlushFinal(&result)); |
| 679 | ARROW_ASSIGN_OR_RAISE(uniques->dictionary, EnsureHashDictionary(ctx, hash)); |
| 680 | *out = {Datum(BoxValueCounts(uniques, result.array_data()))}; |
| 681 | return Status::OK(); |
| 682 | } |
| 683 | |
| 684 | Result<TypeHolder> DictEncodeOutput(KernelContext*, |
| 685 | const std::vector<TypeHolder>& types) { |
nothing calls this directly
no test coverage detected