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

Method MergeFrom

cpp/src/arrow/compute/kernels/aggregate_basic.cc:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 Status MergeFrom(KernelContext*, KernelState&& src) override {
118 const auto& other_state = checked_cast<const CountImpl&>(src);
119 this->non_nulls += other_state.non_nulls;
120 this->nulls += other_state.nulls;
121 return Status::OK();
122 }
123
124 Status Finalize(KernelContext* ctx, Datum* out) override {
125 const auto& state = checked_cast<const CountImpl&>(*ctx->state());

Callers 1

AggregateMergeFunction · 0.45

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected