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

Method ScanBatch

cpp/src/arrow/dataset/file_csv.cc:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 best_guess_bytes_per_batch_(best_guess_bytes_per_batch) {}
80
81 Future<std::shared_ptr<RecordBatch>> ScanBatch(int batch_number) override {
82 // This should be called in increasing order but let's verify that in case it changes.
83 // It would be easy enough to handle out of order but no need for that complexity at
84 // the moment.
85 DCHECK_EQ(scanned_so_far_++, batch_number);
86 return reader_->ReadNextAsync();
87 }
88
89 int64_t EstimatedDataBytes(int batch_number) override {
90 return best_guess_bytes_per_batch_;

Callers 1

operator()Method · 0.45

Calls 1

ReadNextAsyncMethod · 0.45

Tested by

no test coverage detected