| 2056 | } |
| 2057 | |
| 2058 | Status ExportStreamNext(const std::shared_ptr<RecordBatchReader>& src, int64_t i, |
| 2059 | struct ArrowArray* out_array) { |
| 2060 | std::shared_ptr<RecordBatch> batch; |
| 2061 | RETURN_NOT_OK(src->ReadNext(&batch)); |
| 2062 | if (batch == nullptr) { |
| 2063 | // End of stream |
| 2064 | ArrowArrayMarkReleased(out_array); |
| 2065 | return Status::OK(); |
| 2066 | } else { |
| 2067 | return ExportRecordBatch(*batch, out_array); |
| 2068 | } |
| 2069 | } |
| 2070 | |
| 2071 | // the int64_t i input here is unused, but exists simply to allow utilizing the |
| 2072 | // overload of this with the version for ChunkedArrays. If we removed the int64_t |
no test coverage detected