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