bitmap_contains
Descriptionβ
Calculates whether the input value is in the bitmap column, and returns a Boolean value.
Syntaxβ
B00LEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)
Examplesβ
MySQL > select bitmap_contains(to_bitmap(1),2) cnt;
+------+
| cnt  |
+------+
|    0 |
+------+
MySQL > select bitmap_contains(to_bitmap(1),1) cnt;
+------+
| cnt  |
+------+
|    1 |
+------+
keywordβ
BITMAP_CONTAINS,BITMAP