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

Method Next

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

\brief Return the next element of the sequence, IterationTraits ::End() when the iteration is completed.

Source from the content-addressed store, hash-verified

113 /// \brief Return the next element of the sequence, IterationTraits<T>::End() when the
114 /// iteration is completed.
115 Result<T> Next() {
116 if (ptr_) {
117 auto next_result = next_(ptr_.get());
118 if (next_result.ok() && IsIterationEnd(next_result.ValueUnsafe())) {
119 ptr_.reset(NULLPTR);
120 }
121 return next_result;
122 } else {
123 return IterationTraits<T>::End();
124 }
125 }
126
127 /// Pass each element of the sequence to a visitor. Will return any error status
128 /// returned by the visitor, terminating iteration.

Callers 14

WriteVectorToWriterFunction · 0.45
TESTFunction · 0.45
BenchBitmapReaderMethod · 0.45
BenchBitmapReaderMethod · 0.45
VisitBitsFunction · 0.45
NextMethod · 0.45
NextMethod · 0.45
NextMethod · 0.45
MakeIteratorFromReaderFunction · 0.45
IteratorToResultsFunction · 0.45
NextRunMethod · 0.45
TESTFunction · 0.45

Calls 6

IsIterationEndFunction · 0.85
ValueUnsafeMethod · 0.80
EndFunction · 0.70
getMethod · 0.45
okMethod · 0.45
resetMethod · 0.45

Tested by 6

WriteVectorToWriterFunction · 0.36
TESTFunction · 0.36
IteratorToResultsFunction · 0.36
TESTFunction · 0.36
TYPED_TESTFunction · 0.36