MCPcopy Create free account
hub / github.com/apache/arrow / DictionaryHashInit

Function DictionaryHashInit

cpp/src/arrow/compute/kernels/vector_hash.cc:594–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593template <typename Action>
594Result<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
604Status HashExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
605 auto hash_impl = checked_cast<HashKernel*>(ctx->state());

Callers

nothing calls this directly

Calls 1

value_typeMethod · 0.45

Tested by

no test coverage detected