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

Method ReadAsync

cpp/src/arrow/csv/reader_test.cc:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 return table;
58 }
59 virtual Future<std::shared_ptr<Table>> ReadAsync() {
60 auto reader = reader_;
61 AsyncGenerator<std::shared_ptr<RecordBatch>> gen = [reader] {
62 return reader->ReadNextAsync();
63 };
64 return CollectAsyncGenerator(std::move(gen))
65 .Then([](const RecordBatchVector& batches) {
66 return Table::FromRecordBatches(batches);
67 });
68 }
69
70 private:
71 std::shared_ptr<StreamingReader> reader_;

Callers 5

TestEmptyTableFunction · 0.45
TestStraddlingFunction · 0.45
StressTableReaderFunction · 0.45
StressInvalidTableReaderFunction · 0.45
TestNestedParallelismFunction · 0.45

Calls 3

CollectAsyncGeneratorFunction · 0.85
ThenMethod · 0.80
ReadNextAsyncMethod · 0.45

Tested by

no test coverage detected