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

Method Write

cpp/src/arrow/dataset/file_parquet.cc:773–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771 parquet_writer_(std::move(writer)) {}
772
773Status ParquetFileWriter::Write(const std::shared_ptr<RecordBatch>& batch) {
774 ARROW_ASSIGN_OR_RAISE(auto table, Table::FromRecordBatches(batch->schema(), {batch}));
775 return parquet_writer_->WriteTable(*table, batch->num_rows());
776}
777
778Future<> ParquetFileWriter::FinishInternal() {
779 return DeferNotOk(destination_locator_.filesystem->io_context().executor()->Submit(

Callers

nothing calls this directly

Calls 2

WriteTableMethod · 0.45
num_rowsMethod · 0.45

Tested by

no test coverage detected