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

Method selectOdd

bolt/vector/tests/VectorTest.cpp:347–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 }
346
347 static SelectivityVector selectOdd(vector_size_t size) {
348 SelectivityVector odd(size);
349 for (auto i = 0; i < size; ++i) {
350 odd.setValid(i, i % 2 != 0);
351 }
352 odd.updateBounds();
353 return odd;
354 }
355
356 static std::string printEncodings(const VectorPtr& vector) {
357 std::stringstream out;

Callers

nothing calls this directly

Calls 2

setValidMethod · 0.80
updateBoundsMethod · 0.80

Tested by

no test coverage detected