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

Method setValid

bolt/vector/SelectivityVector.h:110–114  ·  view source on GitHub ↗

* Set whether given index is selected. updateBounds() need to be called * explicitly after setValid() call, it can be called only once after multiple * setValid() calls in a row. */

Source from the content-addressed store, hash-verified

108 * setValid() calls in a row.
109 */
110 void setValid(vector_size_t idx, bool valid) {
111 BOLT_DCHECK_LT(idx, bits_.size() * sizeof(bits_[0]) * 8);
112 bits::setBit(bits_.data(), idx, valid);
113 allSelected_.reset();
114 }
115
116 /**
117 * If range is not empty, set a range of values to valid from [start, end).

Callers 15

translateToInnerRowsFunction · 0.80
copyMethod · 0.80
selectBaseRowsToLoadFunction · 0.80
loadedVectorMethod · 0.80
DecodedVectorTestMethod · 0.80
TEST_FFunction · 0.80
testRoundTripOfLazyMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
selectEvenMethod · 0.80
selectOddMethod · 0.80
testCopyFromAllNullsMethod · 0.80

Calls 4

setBitFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45
resetMethod · 0.45

Tested by 15

DecodedVectorTestMethod · 0.64
TEST_FFunction · 0.64
testRoundTripOfLazyMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
selectEvenMethod · 0.64
selectOddMethod · 0.64
testCopyFromAllNullsMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
setValid_normalFunction · 0.64
TESTFunction · 0.64