MCPcopy Create free account
hub / github.com/apache/arrow / Next

Method Next

cpp/src/arrow/util/iterator.h:278–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

EndFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50
NextMethod · 0.45

Tested by

no test coverage detected