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

Method ReadNext

cpp/src/arrow/acero/exec_plan.cc:540–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

538 std::shared_ptr<Schema> schema() const override { return schema_; }
539
540 Status ReadNext(std::shared_ptr<RecordBatch>* record_batch) override {
541 ARROW_ASSIGN_OR_RAISE(auto batch, iterator_.Next());
542 if (batch) {
543 ARROW_ASSIGN_OR_RAISE(*record_batch, batch->ToRecordBatch(schema_, pool_));
544 } else {
545 *record_batch = IterationEnd<std::shared_ptr<RecordBatch>>();
546 }
547 return Status::OK();
548 }
549
550 Status Close() override {
551 // reading from generator until end is reached.

Callers 3

DoFinishMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 3

ToRecordBatchMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
OKFunction · 0.50

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36