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

Method Next

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

Source from the content-addressed store, hash-verified

494 explicit Impl(Fn filter, Iterator<From> it) : filter_(filter), it_(std::move(it)) {}
495
496 Result<To> Next() {
497 To out = IterationTraits<To>::End();
498 Action action;
499
500 for (;;) {
501 ARROW_ASSIGN_OR_RAISE(From i, it_.Next());
502
503 if (IsIterationEnd(i)) {
504 return IterationTraits<To>::End();
505 }
506
507 ARROW_ASSIGN_OR_RAISE(std::tie(out, action), filter_(std::move(i)));
508
509 if (action == ACCEPT) return out;
510 }
511 }
512
513 private:
514 Fn filter_;

Callers

nothing calls this directly

Calls 3

IsIterationEndFunction · 0.85
EndFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50

Tested by

no test coverage detected