| 1573 | } |
| 1574 | |
| 1575 | Result<std::shared_ptr<RecordBatchWriter>> MakeFileWriter( |
| 1576 | io::OutputStream* sink, const std::shared_ptr<Schema>& schema, |
| 1577 | const IpcWriteOptions& options, |
| 1578 | const std::shared_ptr<const KeyValueMetadata>& metadata) { |
| 1579 | return std::make_shared<internal::IpcFormatWriter>( |
| 1580 | std::make_unique<internal::PayloadFileWriter>(options, schema, metadata, sink), |
| 1581 | schema, options, /*is_file_format=*/true); |
| 1582 | } |
| 1583 | |
| 1584 | Result<std::shared_ptr<RecordBatchWriter>> MakeFileWriter( |
| 1585 | std::shared_ptr<io::OutputStream> sink, const std::shared_ptr<Schema>& schema, |
no outgoing calls