| 81 | } |
| 82 | |
| 83 | Status MergeFrom(KernelContext*, KernelState&& src) override { |
| 84 | const auto& other_state = checked_cast<const CountAllImpl&>(src); |
| 85 | this->count += other_state.count; |
| 86 | return Status::OK(); |
| 87 | } |
| 88 | |
| 89 | Status Finalize(KernelContext* ctx, Datum* out) override { |
| 90 | const auto& state = checked_cast<const CountAllImpl&>(*ctx->state()); |