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

Method ReadNextAsync

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

Source from the content-addressed store, hash-verified

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