| 351 | DCHECK_NE(given_physical_schema_, nullptr); |
| 352 | } |
| 353 | Status CheckConsumed() { |
| 354 | if (!batch_it_) return Status::Invalid("OneShotFragment was already scanned"); |
| 355 | return Status::OK(); |
| 356 | } |
| 357 | Result<RecordBatchGenerator> ScanBatchesAsync( |
| 358 | const std::shared_ptr<ScanOptions>& options) override { |
| 359 | RETURN_NOT_OK(CheckConsumed()); |