| 1241 | |
| 1242 | private: |
| 1243 | void FillReadahead() { |
| 1244 | if (min_rows_in_flight_ == 0) { |
| 1245 | // No readahead, fetch the batch when it is asked for |
| 1246 | FetchNext(); |
| 1247 | } else { |
| 1248 | while (readahead_index_ < row_groups_.size() && |
| 1249 | rows_in_flight_ < min_rows_in_flight_) { |
| 1250 | FetchNext(); |
| 1251 | } |
| 1252 | } |
| 1253 | } |
| 1254 | |
| 1255 | void FetchNext() { |
| 1256 | size_t row_group_index = readahead_index_++; |