| 242 | |
| 243 | private: |
| 244 | Future<> WriteNext(std::shared_ptr<RecordBatch> next) { |
| 245 | // May want to prototype / measure someday pushing the async write down further |
| 246 | return DeferNotOk(options_.filesystem->io_context().executor()->Submit( |
| 247 | [self = shared_from_this(), batch = std::move(next)]() { |
| 248 | int64_t rows_to_release = batch->num_rows(); |
| 249 | Status status = self->writer_->Write(batch); |
| 250 | self->writer_state_->rows_in_flight_throttle.Release(rows_to_release); |
| 251 | return status; |
| 252 | })); |
| 253 | } |
| 254 | |
| 255 | Future<> DoFinish() { |
| 256 | { |
no test coverage detected