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

Function GroupedDistinctInit

cpp/src/arrow/compute/kernels/hash_aggregate.cc:1542–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540
1541template <typename Impl>
1542Result<std::unique_ptr<KernelState>> GroupedDistinctInit(KernelContext* ctx,
1543 const KernelInitArgs& args) {
1544 ARROW_ASSIGN_OR_RAISE(auto impl, HashAggregateInit<Impl>(ctx, args));
1545 auto instance = static_cast<Impl*>(impl.get());
1546 instance->out_type_ = args.inputs[0].GetSharedPtr();
1547 ARROW_ASSIGN_OR_RAISE(instance->grouper_,
1548 Grouper::Make(args.inputs, ctx->exec_context()));
1549 return impl;
1550}
1551
1552// ----------------------------------------------------------------------
1553// One implementation

Callers

nothing calls this directly

Calls 4

exec_contextMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.50
MakeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected