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

Method end

cpp/src/arrow/util/ree_util.h:421–424  ·  view source on GitHub ↗

\brief Create an iterator representing the first invalid logical position of the run-end encoded array \warning Avoid calling end() in a loop, as it will recompute the physical length of the array on each call (O(log N) cost per call). You can write your loops like this instead: \code for (auto it = array.begin(), end = array.end(); it != end; ++it) { // ... } \endcode Or this version that doe

Source from the content-addressed store, hash-verified

419 /// }
420 /// \endcode
421 Iterator end() const {
422 return iterator(length(),
423 (length() == 0) ? PhysicalIndex(0) : PhysicalIndex(length() - 1) + 1);
424 }
425
426 // Pre-condition: physical_pos < RunEndsArray(array_span_).length);
427 inline int64_t run_end(int64_t physical_pos) const {

Callers 1

MakeEndMethod · 0.45

Calls 2

iteratorClass · 0.70
lengthFunction · 0.70

Tested by

no test coverage detected