| 107 | std::function<Result<HashAggregateKernel>(const std::shared_ptr<DataType>&)>; |
| 108 | |
| 109 | inline Status AddHashAggKernels(const std::vector<std::shared_ptr<DataType>>& types, |
| 110 | HashAggregateKernelFactory make_kernel, |
| 111 | HashAggregateFunction* function) { |
| 112 | for (const auto& ty : types) { |
| 113 | ARROW_ASSIGN_OR_RAISE(auto kernel, make_kernel(ty)); |
| 114 | RETURN_NOT_OK(function->AddKernel(std::move(kernel))); |
| 115 | } |
| 116 | return Status::OK(); |
| 117 | } |
| 118 | |
| 119 | // ---------------------------------------------------------------------- |
| 120 | // Helpers for more easily implementing hash aggregates |
no test coverage detected