| 1221 | |
| 1222 | // A Schema-owning constructor variant |
| 1223 | IpcFormatWriter(std::unique_ptr<internal::IpcPayloadWriter> payload_writer, |
| 1224 | const std::shared_ptr<Schema>& schema, const IpcWriteOptions& options, |
| 1225 | bool is_file_format) |
| 1226 | : IpcFormatWriter(std::move(payload_writer), *schema, options, is_file_format) { |
| 1227 | shared_schema_ = schema; |
| 1228 | } |
| 1229 | |
| 1230 | Status WriteRecordBatch(const RecordBatch& batch) override { |
| 1231 | return WriteRecordBatch(batch, NULLPTR); |