MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / rowIter

Function rowIter

src/common/arrow/arrow_array_scan.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17template<typename Func>
18static void rowIter(const ValueVector& outputVector, uint64_t count, Func&& func) {
19 // Use sel_vector only if it is unfiltered. For copying the first n elements, count param should
20 // be used instead
21 if (outputVector.state != nullptr && !outputVector.state->getSelVector().isUnfiltered()) {
22 outputVector.state->getSelVector().forEach(func);
23 } else {
24 for (uint64_t i = 0; i < count; i++) {
25 func(i);
26 }
27 }
28}
29
30template<typename T>
31static void scanArrowArrayFixedSizePrimitive(const ArrowArray* array, ValueVector& outputVector,

Calls 2

isUnfilteredMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected