| 683 | } |
| 684 | |
| 685 | RecordBatchVector Finish() { |
| 686 | RecordBatchVector all_batches; |
| 687 | for (auto& fragment_batches : batches) { |
| 688 | auto end = std::make_move_iterator(fragment_batches.end()); |
| 689 | for (auto it = std::make_move_iterator(fragment_batches.begin()); it != end; it++) { |
| 690 | all_batches.push_back(*it); |
| 691 | } |
| 692 | } |
| 693 | return all_batches; |
| 694 | } |
| 695 | }; |
| 696 | |
| 697 | Status AsyncScanner::Scan(std::function<Status(TaggedRecordBatch)> visitor) { |