| 276 | finished_() {} |
| 277 | |
| 278 | Result<V> Next() { |
| 279 | while (!finished_) { |
| 280 | ARROW_ASSIGN_OR_RAISE(std::optional<V> next, Pump()); |
| 281 | if (next.has_value()) { |
| 282 | return std::move(*next); |
| 283 | } |
| 284 | ARROW_ASSIGN_OR_RAISE(last_value_, it_.Next()); |
| 285 | } |
| 286 | return IterationTraits<V>::End(); |
| 287 | } |
| 288 | |
| 289 | private: |
| 290 | // Calls the transform function on the current value. Can return in several ways |
nothing calls this directly
no test coverage detected