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