| 567 | ipc::WriteStats stats() const override { return stats_; } |
| 568 | |
| 569 | CSVWriterImpl(io::OutputStream* sink, std::shared_ptr<io::OutputStream> owned_sink, |
| 570 | std::shared_ptr<Schema> schema, |
| 571 | std::vector<std::unique_ptr<ColumnPopulator>> populators, |
| 572 | const WriteOptions& options) |
| 573 | : sink_(sink), |
| 574 | owned_sink_(std::move(owned_sink)), |
| 575 | column_populators_(std::move(populators)), |
| 576 | offsets_(0, 0, ::arrow::stl::allocator<char*>(options.io_context.pool())), |
| 577 | schema_(std::move(schema)), |
| 578 | options_(options) {} |
| 579 | |
| 580 | private: |
| 581 | Status PrepareForContentsWrite() { |