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

Function BitmapIsAllZero

be/src/kudu/util/bitmap.h:95–99  ·  view source on GitHub ↗

Returns true if the bitmap contains only zeros.

Source from the content-addressed store, hash-verified

93
94// Returns true if the bitmap contains only zeros.
95inline bool BitmapIsAllZero(const uint8_t *bitmap, size_t offset, size_t bitmap_size) {
96 DCHECK_LE(offset, bitmap_size);
97 size_t idx;
98 return !BitmapFindFirstSet(bitmap, offset, bitmap_size, &idx);
99}
100
101// Returns true if the two bitmaps are equal.
102//

Callers 1

TESTFunction · 0.85

Calls 1

BitmapFindFirstSetFunction · 0.85

Tested by 1

TESTFunction · 0.68