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

Method MergeFrom

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

Source from the content-addressed store, hash-verified

358 }
359
360 Status MergeFrom(KernelContext*, KernelState&& src) override {
361 const auto& other = checked_cast<const ThisType&>(src);
362 this->count += other.count;
363 this->product =
364 MultiplyTraits<AccType>::Multiply(*out_type, this->product, other.product);
365 this->nulls_observed = this->nulls_observed || other.nulls_observed;
366 return Status::OK();
367 }
368
369 Status Finalize(KernelContext*, Datum* out) override {
370 if ((!options.skip_nulls && this->nulls_observed) ||

Callers

nothing calls this directly

Calls 2

MultiplyClass · 0.70
OKFunction · 0.50

Tested by

no test coverage detected