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

Method ResetKernelStates

cpp/src/arrow/acero/scalar_aggregate_node.cc:277–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277Status ScalarAggregateNode::ResetKernelStates() {
278 auto exec_ctx = plan()->query_context()->exec_context();
279 for (size_t i = 0; i < kernels_.size(); ++i) {
280 states_[i].resize(plan()->query_context()->max_concurrency());
281 KernelContext kernel_ctx{exec_ctx};
282 RETURN_NOT_OK(Kernel::InitAll(
283 &kernel_ctx,
284 KernelInitArgs{kernels_[i], kernel_intypes_[i], aggs_[i].options.get()},
285 &states_[i]));
286 }
287 return Status::OK();
288}
289
290Status ScalarAggregateNode::OutputResult(bool is_last) {
291 ExecBatch batch{{}, 1};

Callers

nothing calls this directly

Calls 8

planFunction · 0.85
exec_contextMethod · 0.80
query_contextMethod · 0.80
resizeMethod · 0.80
max_concurrencyMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected