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

Method Next

be/src/kudu/util/bitmap.h:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 size_t Next(bool *value) {
155 size_t len = num_bits_ - offset_;
156 if (PREDICT_FALSE(len == 0))
157 return(0);
158
159 *value = BitmapTest(map_, offset_);
160
161 size_t index;
162 if (BitmapFindFirst(map_, offset_, num_bits_, !(*value), &index)) {
163 len = index - offset_;
164 } else {
165 index = num_bits_;
166 }
167
168 offset_ = index;
169 return len;
170 }
171
172 private:
173 size_t offset_;

Callers

nothing calls this directly

Calls 2

BitmapTestFunction · 0.85
BitmapFindFirstFunction · 0.85

Tested by

no test coverage detected