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

Method ReadBatch

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

Source from the content-addressed store, hash-verified

1855 }
1856
1857 Status ReadBatch(std::shared_ptr<RecordBatch>* out_batch) {
1858 auto buf_reader = std::make_shared<io::BufferReader>(buffer_);
1859 std::shared_ptr<RecordBatchReader> reader;
1860 ARROW_ASSIGN_OR_RAISE(
1861 reader, RecordBatchStreamReader::Open(buf_reader, IpcReadOptions::Defaults()))
1862 return reader->ReadNext(out_batch);
1863 }
1864
1865 std::unique_ptr<internal::IpcPayloadWriter> payload_writer_;
1866 const Schema& schema_;

Callers 1

TESTFunction · 0.45

Calls 3

ARROW_ASSIGN_OR_RAISEFunction · 0.70
DefaultsFunction · 0.50
ReadNextMethod · 0.45

Tested by

no test coverage detected