MCPcopy Create free account
hub / github.com/bytedance/bolt / setValidRange

Method setValidRange

bolt/vector/SelectivityVector.h:121–129  ·  view source on GitHub ↗

* If range is not empty, set a range of values to valid from [start, end). * updateBounds() need to be called explicitly after setValidRange() call, it * can be called only once after multiple setValidRange() calls in a row. */

Source from the content-addressed store, hash-verified

119 * can be called only once after multiple setValidRange() calls in a row.
120 */
121 void setValidRange(vector_size_t begin, vector_size_t end, bool valid) {
122 BOLT_DCHECK_GE(end, begin);
123 if (begin == end) {
124 return;
125 }
126 BOLT_DCHECK_LE(end, bits_.size() * sizeof(bits_[0]) * 8);
127 bits::fillBits(bits_.data(), begin, end, valid);
128 allSelected_.reset();
129 }
130
131 /**
132 * @return true if given index is selected, false if not

Callers 15

copyRangesMethod · 0.80
printVectorFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
toSelectivityVectorFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
setValidRangeTestFunction · 0.80
readConstantVectorFunction · 0.80
readDictionaryVectorFunction · 0.80
decodeMethod · 0.80
addInputMethod · 0.80

Calls 4

fillBitsFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45
resetMethod · 0.45

Tested by 14

TEST_FFunction · 0.64
TEST_FFunction · 0.64
toSelectivityVectorFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_PFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64