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

Function AddHashAggKernels

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

Source from the content-addressed store, hash-verified

107 std::function<Result<HashAggregateKernel>(const std::shared_ptr<DataType>&)>;
108
109inline 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

Calls 2

OKFunction · 0.50
AddKernelMethod · 0.45

Tested by

no test coverage detected