跳到主要内容

orthogonal_bitmap_union_count

orthogonal_bitmap_union_count

description

Syntax

BITMAP ORTHOGONAL_BITMAP_UNION_COUNT(bitmap_column, column_to_filter, filter_values) 求bitmap并集大小的函数, 参数类型是bitmap,是待求并集count的列

example

mysql> select orthogonal_bitmap_union_count(members) from tag_map where  tag_group in ( 1150000, 1150001, 390006);
+------------------------------------------+
| orthogonal_bitmap_union_count(`members`) |
+------------------------------------------+
| 286957811 |
+------------------------------------------+
1 row in set (2.645 sec)

keywords

ORTHOGONAL_BITMAP_UNION_COUNT,BITMAP