Moves the iterator to the next row. If the current row is the last row in the batch, advances to either the next non-empty batch or the end. No-op if the iterator is already at the end.
| 62 | /// batch, advances to either the next non-empty batch or the end. No-op if the |
| 63 | /// iterator is already at the end. |
| 64 | void Next() { |
| 65 | if (AtEnd()) return; |
| 66 | DCHECK_GE((*batch_it_)->num_rows(), 0); |
| 67 | if (++row_idx_ == (*batch_it_)->num_rows()) { |
| 68 | ++batch_it_; |
| 69 | SkipEmptyBatches(); |
| 70 | row_idx_ = 0; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | private: |
| 75 | friend class RowBatchList; |