| 126 | std::vector<uint64_t> counts; |
| 127 | |
| 128 | CountModer(CType min, CType max) { |
| 129 | uint32_t value_range = static_cast<uint32_t>(max - min) + 1; |
| 130 | DCHECK_LT(value_range, 1 << 20); |
| 131 | this->min = min; |
| 132 | this->counts.resize(value_range, 0); |
| 133 | } |
| 134 | |
| 135 | Status GetResult(KernelContext* ctx, const DataType& type, ExecResult* out) { |
| 136 | // generator to emit next value:count pair |