Need a specialized end iter as we can concatenate pages.
| 367 | void Fetch() final; |
| 368 | // Need a specialized end iter as we can concatenate pages. |
| 369 | void EndIter() final { |
| 370 | if (this->cache_info_->written) { |
| 371 | CHECK_EQ(this->Iter(), this->cache_info_->Size()); |
| 372 | } else { |
| 373 | CHECK_LE(this->cache_info_->Size(), this->ext_info_.n_batches); |
| 374 | } |
| 375 | this->cache_info_->Commit(); |
| 376 | CHECK_GE(this->count_, 1); |
| 377 | this->count_ = 0; |
| 378 | } |
| 379 | }; |
| 380 | |
| 381 | // Cache to host |