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

Method Next

cpp/src/arrow/util/iterator.h:116–126  ·  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

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