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

Function AddHashAggKernels

cpp/src/arrow/compute/kernels/hash_aggregate_internal.h:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 2

OKFunction · 0.50
AddKernelMethod · 0.45

Tested by

no test coverage detected