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

Function FirstLastInit

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

Source from the content-addressed store, hash-verified

1135
1136template <typename T>
1137Result<std::unique_ptr<KernelState>> FirstLastInit(KernelContext* ctx,
1138 const KernelInitArgs& args) {
1139 ARROW_ASSIGN_OR_RAISE(auto impl, HashAggregateInit<GroupedFirstLastImpl<T>>(ctx, args));
1140 static_cast<GroupedFirstLastImpl<T>*>(impl.get())->type_ =
1141 args.inputs[0].GetSharedPtr();
1142 return impl;
1143}
1144
1145template <FirstOrLast first_or_last>
1146HashAggregateKernel MakeFirstOrLastKernel(HashAggregateFunction* first_last_func) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected