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

Method ReadNext

cpp/src/arrow/c/bridge.cc:2399–2412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2397 std::shared_ptr<Schema> schema() const override { return schema_; }
2398
2399 Status ReadNext(std::shared_ptr<RecordBatch>* batch) override {
2400 ARROW_RETURN_NOT_OK(this->CheckNotReleased());
2401
2402 ArrayType c_array;
2403 ARROW_RETURN_NOT_OK(this->ReadNextArrayInternal(&c_array));
2404
2405 if (ArrayTraits::IsReleasedFunc(&c_array)) {
2406 // End of stream
2407 batch->reset();
2408 return Status::OK();
2409 } else {
2410 return this->ImportRecordBatchInternal(&c_array, schema_).Value(batch);
2411 }
2412 }
2413
2414 Status Close() override {
2415 this->ReleaseStream();

Callers 2

ExportStreamNextFunction · 0.45
ImportChunkedFunction · 0.45

Calls 6

CheckNotReleasedMethod · 0.80
ReadNextArrayInternalMethod · 0.80
OKFunction · 0.50
resetMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected