| 49 | } |
| 50 | |
| 51 | bool OperatorTraceInputReader::read(RowVectorPtr& batch) const { |
| 52 | if (inputStream_ == nullptr) { |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | if (inputStream_->atEnd()) { |
| 57 | batch = nullptr; |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | VectorStreamGroup::read( |
| 62 | inputStream_.get(), pool_, dataType_, &batch, &readOptions_); |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | std::unique_ptr<common::FileInputStream> |
| 67 | OperatorTraceInputReader::getInputStream() const { |