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

Method Next

cpp/src/arrow/util/iterator_test.cc:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 explicit TracingIterator(Iterator<T> it) : it_(std::move(it)), state_(new State) {}
41
42 Result<T> Next() {
43 auto lock = state_->Lock();
44 state_->thread_ids_.insert(std::this_thread::get_id());
45
46 RETURN_NOT_OK(state_->GetNextStatus());
47
48 ARROW_ASSIGN_OR_RAISE(auto out, it_.Next());
49 state_->values_.push_back(out);
50
51 state_->cv_.notify_one();
52 return out;
53 }
54
55 class State {
56 public:

Callers 1

TESTFunction · 0.45

Calls 4

GetNextStatusMethod · 0.80
push_backMethod · 0.80
LockMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected