MCPcopy Create free account
hub / github.com/apache/impala / CreateRandomBitmap

Function CreateRandomBitmap

be/src/util/bitmap-test.cc:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace impala {
27
28void CreateRandomBitmap(Bitmap* bitmap) {
29 for (int64_t i = 0; i < bitmap->num_bits(); ++i) {
30 bitmap->Set(i, rand() % 2 == 0);
31 }
32}
33
34// Returns true if all the bits in the bitmap are equal to 'value'.
35bool CheckAll(const Bitmap& bitmap, const bool value) {

Callers 1

TESTFunction · 0.85

Calls 2

num_bitsMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected