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

Method ReadNext

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

Source from the content-addressed store, hash-verified

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