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

Method ReadNext

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

Source from the content-addressed store, hash-verified

2389 std::shared_ptr<Schema> schema() const override { return schema_; }
2390
2391 Status ReadNext(std::shared_ptr<RecordBatch>* batch) override {
2392 ARROW_RETURN_NOT_OK(this->CheckNotReleased());
2393
2394 ArrayType c_array;
2395 ARROW_RETURN_NOT_OK(this->ReadNextArrayInternal(&c_array));
2396
2397 if (ArrayTraits::IsReleasedFunc(&c_array)) {
2398 // End of stream
2399 batch->reset();
2400 return Status::OK();
2401 } else {
2402 return this->ImportRecordBatchInternal(&c_array, schema_).Value(batch);
2403 }
2404 }
2405
2406 Status Close() override {
2407 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