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

Function MinMaxInit

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

Source from the content-addressed store, hash-verified

633
634template <typename T>
635Result<std::unique_ptr<KernelState>> MinMaxInit(KernelContext* ctx,
636 const KernelInitArgs& args) {
637 ARROW_ASSIGN_OR_RAISE(auto impl, HashAggregateInit<GroupedMinMaxImpl<T>>(ctx, args));
638 static_cast<GroupedMinMaxImpl<T>*>(impl.get())->type_ = args.inputs[0].GetSharedPtr();
639 return impl;
640}
641
642template <MinOrMax min_or_max>
643HashAggregateKernel MakeMinOrMaxKernel(HashAggregateFunction* min_max_func) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected