| 548 | } |
| 549 | |
| 550 | Status WriteTable(const Table& table, int64_t max_chunksize) override { |
| 551 | TableBatchReader reader(table); |
| 552 | reader.set_chunksize(max_chunksize > 0 ? max_chunksize : options_.batch_size); |
| 553 | std::shared_ptr<RecordBatch> batch; |
| 554 | RETURN_NOT_OK(reader.ReadNext(&batch)); |
| 555 | while (batch != nullptr) { |
| 556 | RETURN_NOT_OK(TranslateMinimalBatch(*batch)); |
| 557 | RETURN_NOT_OK(FlushToSink()); |
| 558 | RETURN_NOT_OK(reader.ReadNext(&batch)); |
| 559 | stats_.num_record_batches++; |
| 560 | } |
| 561 | |
| 562 | return Status::OK(); |
| 563 | } |
| 564 | |
| 565 | Status Close() override { return Status::OK(); } |
| 566 |
no test coverage detected