| 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(); |
no test coverage detected