MCPcopy Create free account
hub / github.com/duckdb/duckdb / Next

Method Next

tools/shell/shell_renderer.cpp:152–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void Next() {
153 if (!result) {
154 return;
155 }
156 // iterate to next position
157 row_data.row_index++;
158 row_in_chunk++;
159 auto &chunk = *result->chunks[chunk_idx];
160 if (row_in_chunk >= chunk.size()) {
161 row_in_chunk = 0;
162 chunk_idx++;
163 }
164 if (!result->exhausted_result && Finished()) {
165 // convert the next chunk (if we have any)
166 result->TryConvertChunk();
167 }
168 // read data from this position
169 AssignData();
170 }
171
172 RenderingResultIterator &operator++() {
173 Next();

Callers

nothing calls this directly

Calls 3

FinishedFunction · 0.85
TryConvertChunkMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected