| 71 | using FormatType = ParquetFileFormat; |
| 72 | |
| 73 | static Result<std::shared_ptr<Buffer>> Write( |
| 74 | RecordBatchReader* reader, |
| 75 | const std::shared_ptr<ArrowWriterProperties>& arrow_properties = |
| 76 | default_arrow_writer_properties()) { |
| 77 | auto pool = ::arrow::default_memory_pool(); |
| 78 | std::shared_ptr<Buffer> out; |
| 79 | auto sink = CreateOutputStream(pool); |
| 80 | RETURN_NOT_OK(WriteRecordBatchReader(reader, pool, sink, default_writer_properties(), |
| 81 | arrow_properties)); |
| 82 | return sink->Finish(); |
| 83 | } |
| 84 | static std::shared_ptr<ParquetFileFormat> MakeFormat() { |
| 85 | return std::make_shared<ParquetFileFormat>(); |
| 86 | } |
no test coverage detected