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

Method Consume

cpp/src/arrow/compute/kernels/aggregate_basic.inc.cc:118–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 explicit NullImpl(const ScalarAggregateOptions& options_) : options(options_) {}
117
118 Status Consume(KernelContext*, const ExecSpan& batch) override {
119 if (batch[0].is_scalar() || batch[0].array.GetNullCount() > 0) {
120 // If the batch is a scalar or an array with elements, set is_empty to false
121 is_empty = false;
122 }
123 return Status::OK();
124 }
125
126 Status MergeFrom(KernelContext*, KernelState&& src) override {
127 const auto& other = checked_cast<const NullImpl&>(src);

Callers

nothing calls this directly

Calls 3

is_scalarMethod · 0.80
GetNullCountMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected