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

Function HashAggregateInit

cpp/src/arrow/compute/kernels/hash_aggregate_internal.h:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <typename Impl>
55Result<std::unique_ptr<KernelState>> HashAggregateInit(KernelContext* ctx,
56 const KernelInitArgs& args) {
57 auto impl = std::make_unique<Impl>();
58 RETURN_NOT_OK(impl->Init(ctx->exec_context(), args));
59 return impl;
60}
61
62inline Status HashAggregateResize(KernelContext* ctx, int64_t num_groups) {
63 return checked_cast<GroupedAggregator*>(ctx->state())->Resize(num_groups);

Callers

nothing calls this directly

Calls 2

exec_contextMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected