| 592 | |
| 593 | template <typename Action> |
| 594 | Result<std::unique_ptr<KernelState>> DictionaryHashInit(KernelContext* ctx, |
| 595 | const KernelInitArgs& args) { |
| 596 | const auto& dict_type = checked_cast<const DictionaryType&>(*args.inputs[0].type); |
| 597 | ARROW_ASSIGN_OR_RAISE(auto indices_hasher, |
| 598 | GetHashInit<Action>(dict_type.index_type()->id())(ctx, args)); |
| 599 | return std::make_unique<DictionaryHashKernel>( |
| 600 | checked_pointer_cast<HashKernel>(std::move(indices_hasher)), |
| 601 | dict_type.value_type()); |
| 602 | } |
| 603 | |
| 604 | Status HashExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 605 | auto hash_impl = checked_cast<HashKernel*>(ctx->state()); |
nothing calls this directly
no test coverage detected