| 630 | } |
| 631 | |
| 632 | bool SpillReadFile::nextBatch(RowVectorPtr& rowVector) { |
| 633 | if (input_->atEnd()) { |
| 634 | spillReadIOTimeUs_ = input_->getSpillReadIOTime(); |
| 635 | return false; |
| 636 | } |
| 637 | if (serde_ != nullptr) { |
| 638 | serde_->deserialize(input_.get(), pool_, type_, &rowVector, &readOptions_); |
| 639 | } else { |
| 640 | VectorStreamGroup::read( |
| 641 | input_.get(), pool_, type_, &rowVector, &readOptions_); |
| 642 | } |
| 643 | return true; |
| 644 | } |
| 645 | |
| 646 | void SpillReadFile::reuse() { |
| 647 | input_->reuse(); |
nothing calls this directly
no test coverage detected