bitmap_contains

description

Syntax

B00LEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)

Calculates whether the input value is in the Bitmap column and returns a Boolean value.

example

  1. mysql> select bitmap_contains(to_bitmap(1),2) cnt;
  2. +------+
  3. | cnt |
  4. +------+
  5. | 0 |
  6. +------+
  7. mysql> select bitmap_contains(to_bitmap(1),1) cnt;
  8. +------+
  9. | cnt |
  10. +------+
  11. | 1 |
  12. +------+

keyword

  1. BITMAP_CONTAINS,BITMAP