| 1416 | |
| 1417 | struct StreamDecoderWriterHelper : public StreamWriterHelper { |
| 1418 | Status ReadBatches(const IpcReadOptions& options, RecordBatchVector* out_batches, |
| 1419 | ReadStats* out_stats = nullptr, |
| 1420 | MetadataVector* out_metadata_list = nullptr) override { |
| 1421 | auto listener = std::make_shared<CopyCollectListener>(); |
| 1422 | StreamDecoder decoder(listener, options); |
| 1423 | RETURN_NOT_OK(DoConsume(&decoder)); |
| 1424 | *out_batches = listener->record_batches(); |
| 1425 | if (out_stats) { |
| 1426 | *out_stats = decoder.stats(); |
| 1427 | } |
| 1428 | return Status::OK(); |
| 1429 | } |
| 1430 | |
| 1431 | Status ReadSchema(const IpcReadOptions& read_options, |
| 1432 | std::shared_ptr<Schema>* out) override { |
nothing calls this directly
no test coverage detected