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

Method ReadNextAsync

cpp/src/arrow/json/reader.cc:456–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454 }
455
456 Future<std::shared_ptr<RecordBatch>> ReadNextAsync() override {
457 // On the first call, return the batch we used for initialization
458 if (ARROW_PREDICT_FALSE(first_block_)) {
459 bytes_processed_->fetch_add(first_block_->num_bytes);
460 auto batch = std::exchange(first_block_, std::nullopt)->record_batch;
461 return ToFuture(std::move(batch));
462 }
463 return generator_();
464 }
465
466 [[nodiscard]] int64_t bytes_processed() const override {
467 return bytes_processed_->load();

Callers 2

MakeGeneratorMethod · 0.45
TEST_FFunction · 0.45

Calls 1

ToFutureFunction · 0.85

Tested by 2

MakeGeneratorMethod · 0.36
TEST_FFunction · 0.36