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

Method MergeFrom

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

Source from the content-addressed store, hash-verified

722 }
723
724 Status MergeFrom(KernelContext*, KernelState&& src) override {
725 const auto& other = checked_cast<const IndexImpl&>(src);
726 if (index < 0 && other.index >= 0) {
727 index = seen + other.index;
728 }
729 seen += other.seen;
730 return Status::OK();
731 }
732
733 Status Finalize(KernelContext*, Datum* out) override {
734 out->value = std::make_shared<Int64Scalar>(index >= 0 ? index : -1);

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected