bitmap_and

Description

Syntax

BITMAP BITMAP_AND(BITMAP lhs, BITMAP rhs)

Calculate the intersection of two input bitmaps and return the new bitmap.

Examples

MySQL > select bitmap_count(bitmap_and(to_bitmap(1), to_bitmap(2))) cnt;
+------+
| cnt  |
+------+
|    0 |
+------+

MySQL > select bitmap_count(bitmap_and(to_bitmap(1), to_bitmap(1))) cnt;
+------+
| cnt  |
+------+
|    1 |
+------+

keyword

BITMAP_AND,BITMAP