| 1205 | |
| 1206 | // A Schema-owning constructor variant |
| 1207 | IpcFormatWriter(std::unique_ptr<internal::IpcPayloadWriter> payload_writer, |
| 1208 | const std::shared_ptr<Schema>& schema, const IpcWriteOptions& options, |
| 1209 | bool is_file_format) |
| 1210 | : IpcFormatWriter(std::move(payload_writer), *schema, options, is_file_format) { |
| 1211 | shared_schema_ = schema; |
| 1212 | } |
| 1213 | |
| 1214 | Status WriteRecordBatch(const RecordBatch& batch) override { |
| 1215 | return WriteRecordBatch(batch, NULLPTR); |