| 2277 | |
| 2278 | protected: |
| 2279 | Status ReadNextArrayInternal(ArrayType* array) { |
| 2280 | ArrayTraits::MarkReleased(array); |
| 2281 | Status status = StatusFromCError(stream_.get_next(&stream_, array)); |
| 2282 | if (!status.ok()) { |
| 2283 | ArrayTraits::ReleaseFunc(array); |
| 2284 | } |
| 2285 | |
| 2286 | return status; |
| 2287 | } |
| 2288 | |
| 2289 | Result<std::shared_ptr<RecordBatch>> ImportRecordBatchInternal( |
| 2290 | struct ArrowArray* array, std::shared_ptr<Schema> schema) { |