MCPcopy Create free account
hub / github.com/apache/arrow / ReadBatches

Method ReadBatches

cpp/src/arrow/ipc/read_write_test.cc:1418–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416
1417struct 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 {

Callers

nothing calls this directly

Calls 3

record_batchesMethod · 0.80
OKFunction · 0.50
statsMethod · 0.45

Tested by

no test coverage detected