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

Method RecordPostListVisit

cpp/src/parquet/arrow/path_internal.cc:204–210  ·  view source on GitHub ↗

Incorporates |range| into visited elements. If the |range| is contiguous with the last range, extend the last range, otherwise add |range| separately to the list.

Source from the content-addressed store, hash-verified

202 // with the last range, extend the last range, otherwise add |range| separately
203 // to the list.
204 void RecordPostListVisit(const ElementRange& range) {
205 if (!visited_elements.empty() && range.start == visited_elements.back().end) {
206 visited_elements.back().end = range.end;
207 return;
208 }
209 visited_elements.push_back(range);
210 }
211
212 Status last_status;
213 TypedBufferBuilder<int16_t> rep_levels;

Callers 1

FillForLastMethod · 0.80

Calls 3

backMethod · 0.80
push_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected