* @return the number of data items contained inside this merge unit */
| 247 | * @return the number of data items contained inside this merge unit |
| 248 | */ |
| 249 | uint64_t num_items() const { |
| 250 | uint64_t total_items = 0; |
| 251 | for (size_t i = 0; i < starts.size(); i++) { |
| 252 | total_items += (ends[i] - starts[i]); |
| 253 | } |
| 254 | return total_items; |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * @return the starting position in the output where this merge unit writes to |