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

Method Next

be/src/exec/row-batch-list.h:64–72  ·  view source on GitHub ↗

Moves the iterator to the next row. If the current row is the last row in the batch, advances to either the next non-empty batch or the end. No-op if the iterator is already at the end.

Source from the content-addressed store, hash-verified

62 /// batch, advances to either the next non-empty batch or the end. No-op if the
63 /// iterator is already at the end.
64 void Next() {
65 if (AtEnd()) return;
66 DCHECK_GE((*batch_it_)->num_rows(), 0);
67 if (++row_idx_ == (*batch_it_)->num_rows()) {
68 ++batch_it_;
69 SkipEmptyBatches();
70 row_idx_ = 0;
71 }
72 }
73
74 private:
75 friend class RowBatchList;

Callers 1

DebugStringMethod · 0.45

Calls 1

num_rowsMethod · 0.45

Tested by

no test coverage detected