| 68 | } |
| 69 | |
| 70 | inline Status HashAggregateMerge(KernelContext* ctx, KernelState&& other, |
| 71 | const ArrayData& group_id_mapping) { |
| 72 | return checked_cast<GroupedAggregator*>(ctx->state()) |
| 73 | ->Merge(checked_cast<GroupedAggregator&&>(other), group_id_mapping); |
| 74 | } |
| 75 | |
| 76 | inline Status HashAggregateFinalize(KernelContext* ctx, Datum* out) { |
| 77 | return checked_cast<GroupedAggregator*>(ctx->state())->Finalize().Value(out); |