MCPcopy Create free account
hub / github.com/apache/arrow / WriteNext

Method WriteNext

cpp/src/arrow/dataset/dataset_writer.cc:244–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

ScheduleBatchMethod · 0.95

Calls 5

DeferNotOkFunction · 0.85
executorMethod · 0.45
num_rowsMethod · 0.45
WriteMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected