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

Function HashAggregateInit

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

Source from the content-addressed store, hash-verified

52
53template <typename Impl>
54Result<std::unique_ptr<KernelState>> HashAggregateInit(KernelContext* ctx,
55 const KernelInitArgs& args) {
56 auto impl = std::make_unique<Impl>();
57 RETURN_NOT_OK(impl->Init(ctx->exec_context(), args));
58 // R build with openSUSE155 requires an explicit unique_ptr construction
59 return std::unique_ptr<KernelState>(std::move(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