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

Method resizeFill

bolt/vector/SelectivityVector.h:95–103  ·  view source on GitHub ↗

Resizes the vector to new size and sets all bits to `value`.

Source from the content-addressed store, hash-verified

93
94 /// Resizes the vector to new size and sets all bits to `value`.
95 void resizeFill(int32_t size, bool value = true) {
96 auto numWords = bits::nwords(size);
97 bits_.resize(numWords);
98 std::fill(bits_.begin(), bits_.end(), value ? ~0LL : 0);
99 size_ = size;
100 begin_ = 0;
101 end_ = value ? size_ : 0;
102 allSelected_ = value;
103 }
104
105 /**
106 * Set whether given index is selected. updateBounds() need to be called

Callers 15

selectBaseRowsToLoadFunction · 0.80
TESTFunction · 0.80
getSelectivityVectorMethod · 0.80
updateRowsMethod · 0.80
setEmptyFramesResultMethod · 0.80
evalFilterMethod · 0.80
isBlockedMethod · 0.80
evaluateJoinFilterMethod · 0.80

Calls 4

nwordsFunction · 0.85
resizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64