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

Method setFromBits

bolt/vector/SelectivityVector.h:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 void setFromBits(const uint64_t* bits, int32_t size) {
189 auto numWords = bits::nwords(size);
190 if (numWords > bits_.size()) {
191 bits_.resize(numWords);
192 }
193 memcpy(bits_.data(), bits, numWords * 8);
194 size_ = size;
195 end_ = size;
196 begin_ = 0;
197 updateBounds();
198 }
199
200 /**
201 * Removes rows that are not present in the 'other' vector.

Callers 3

restoreSelectivityVectorFunction · 0.80
TESTFunction · 0.80
getOutputMethod · 0.80

Calls 5

nwordsFunction · 0.85
memcpyFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by 1

TESTFunction · 0.64