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

Method ReadAsync

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

Source from the content-addressed store, hash-verified

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