| 52 | |
| 53 | namespace { |
| 54 | ExecBatchIteratorMaker VecToItMaker(std::vector<ExecBatch> batches) { |
| 55 | auto batches_ptr = std::make_shared<std::vector<std::shared_ptr<ExecBatch>>>(); |
| 56 | batches_ptr->reserve(batches.size()); |
| 57 | for (auto batch : batches) { |
| 58 | batches_ptr->push_back(std::make_shared<ExecBatch>(std::move(batch))); |
| 59 | } |
| 60 | return |
| 61 | [batches_ptr = std::move(batches_ptr)] { return MakeVectorIterator(*batches_ptr); }; |
| 62 | } |
| 63 | } // namespace |
| 64 | |
| 65 | ExecBatchSourceNodeOptions::ExecBatchSourceNodeOptions( |
no test coverage detected