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

Method select

bolt/vector/SelectivityVector.h:271–278  ·  view source on GitHub ↗

Merges the valid vector of another SelectivityVector by or'ing them together. This is used to support memoization where a state may acquire new values over time. Grows 'this' if size of 'other' exceeds this size.

Source from the content-addressed store, hash-verified

269 /// may acquire new values over time. Grows 'this' if size of 'other' exceeds
270 /// this size.
271 void select(const SelectivityVector& other) {
272 if (size_ < other.size()) {
273 resize(other.size(), false);
274 }
275 bits::orBits(
276 bits_.data(), other.bits_.data(), 0, std::min(size_, other.size()));
277 updateBounds();
278 }
279
280 // Returns true if 'this' is equal to or a subset of 'other'.
281 bool isSubset(const SelectivityVector& other) const {

Callers 15

computeAndSetIsAsciiMethod · 0.80
setIsAsciiMethod · 0.80
selectBaseRowsToLoadFunction · 0.80
TESTFunction · 0.80
verifyFlatMapReadingFunction · 0.80
TEST_PFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_PFunction · 0.80
loadRowGroupMethod · 0.80

Calls 4

orBitsFunction · 0.85
minFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by 14

TESTFunction · 0.64
verifyFlatMapReadingFunction · 0.64
TEST_PFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_PFunction · 0.64
getReaderOptsMethod · 0.64
createReaderMethod · 0.64
createRowReaderMethod · 0.64
TEST_FFunction · 0.64