| 550 | FileWriter::~FileWriter() {} |
| 551 | |
| 552 | Status FileWriter::Make(::arrow::MemoryPool* pool, |
| 553 | std::unique_ptr<ParquetFileWriter> writer, |
| 554 | std::shared_ptr<::arrow::Schema> schema, |
| 555 | std::shared_ptr<ArrowWriterProperties> arrow_properties, |
| 556 | std::unique_ptr<FileWriter>* out) { |
| 557 | std::unique_ptr<FileWriterImpl> impl(new FileWriterImpl( |
| 558 | std::move(schema), pool, std::move(writer), std::move(arrow_properties))); |
| 559 | RETURN_NOT_OK(impl->Init()); |
| 560 | *out = std::move(impl); |
| 561 | return Status::OK(); |
| 562 | } |
| 563 | |
| 564 | Result<std::unique_ptr<FileWriter>> FileWriter::Open( |
| 565 | const ::arrow::Schema& schema, ::arrow::MemoryPool* pool, |