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

Method WriteRecordBatch

cpp/src/arrow/csv/writer.cc:539–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537 }
538
539 Status WriteRecordBatch(const RecordBatch& batch) override {
540 RecordBatchIterator iterator = RecordBatchSliceIterator(batch, options_.batch_size);
541 for (auto maybe_slice : iterator) {
542 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<RecordBatch> slice, maybe_slice);
543 RETURN_NOT_OK(TranslateMinimalBatch(*slice));
544 RETURN_NOT_OK(FlushToSink());
545 stats_.num_record_batches++;
546 }
547 return Status::OK();
548 }
549
550 Status WriteTable(const Table& table, int64_t max_chunksize) override {
551 TableBatchReader reader(table);

Callers 5

WriteRecordBatchFunction · 0.45
WriteCSVFunction · 0.45
SerializeFunction · 0.45
SerializeMethod · 0.45

Calls 3

RecordBatchSliceIteratorFunction · 0.85
ARROW_ASSIGN_OR_RAISEFunction · 0.50
OKFunction · 0.50

Tested by 1