| 1175 | static constexpr bool kIsFileFormat = true; |
| 1176 | |
| 1177 | Status Init(const std::shared_ptr<Schema>& schema, const IpcWriteOptions& options, |
| 1178 | const std::shared_ptr<const KeyValueMetadata>& metadata = nullptr) { |
| 1179 | num_batches_written_ = 0; |
| 1180 | |
| 1181 | ARROW_ASSIGN_OR_RAISE(buffer_, AllocateResizableBuffer(0)); |
| 1182 | sink_.reset(new io::BufferOutputStream(buffer_)); |
| 1183 | ARROW_ASSIGN_OR_RAISE(writer_, |
| 1184 | MakeFileWriter(sink_.get(), schema, options, metadata)); |
| 1185 | return Status::OK(); |
| 1186 | } |
| 1187 | |
| 1188 | Status WriteBatch(const std::shared_ptr<RecordBatch>& batch, |
| 1189 | const std::shared_ptr<const KeyValueMetadata>& metadata = nullptr) { |
no test coverage detected