| 1198 | |
| 1199 | // A Schema-owning constructor variant |
| 1200 | IpcFormatWriter(std::unique_ptr<internal::IpcPayloadWriter> payload_writer, |
| 1201 | const std::shared_ptr<Schema>& schema, const IpcWriteOptions& options, |
| 1202 | bool is_file_format) |
| 1203 | : IpcFormatWriter(std::move(payload_writer), *schema, options, is_file_format) { |
| 1204 | shared_schema_ = schema; |
| 1205 | } |
| 1206 | |
| 1207 | Status WriteRecordBatch(const RecordBatch& batch) override { |
| 1208 | return WriteRecordBatch(batch, NULLPTR); |