| 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()); |