groupBitmap에 -State를 사용해 만드는 방법이고, 다른 하나는 배열 객체에서 비트맵을 만드는 방법입니다.
bitmapAnd
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapAndCardinality
bitmap1— 첫 번째 비트맵 객체.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체.AggregateFunction(groupBitmap, T).
UInt64
예시
사용 예시
Query
Response
bitmapAndnot
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapAndnotCardinality
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
bitmap1 AND-NOT bitmap2 결과에서 1로 설정된 비트 수를 반환합니다. UInt64
예시
사용 예시
Query
Response
bitmapBuild
bitmapToArray의 반대 기능입니다.
구문
array— 부호 없는 정수로 이루어진 배열.Array(UInt*)
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapCardinality
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T).
UInt64
예시
사용 예시
Query
Response
bitmapContains
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T). -value— 확인할 요소. (U)Int8/16/32/64
1, 그렇지 않으면 0을 반환합니다. UInt8
예시
사용 예시
Query
Response
bitmapHasAll
bitmap1— 첫 번째 비트맵 객체.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체.AggregateFunction(groupBitmap, T).
1을, 그렇지 않으면 0을 반환합니다 UInt8
예시
사용 예시
Query
Response
bitmapHasAny
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
1을, 그렇지 않으면 0을 반환합니다. UInt8
예시
사용 예시
Query
Response
bitmapMax
0을 반환합니다.
구문
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T).
0을 반환합니다. UInt64
예시
사용 예시
Query
Response
bitmapMin
UINT32_MAX를 반환하며, 비트맵에 2^64개보다 많은 비트가 포함된 경우에는 UINT64_MAX를 반환합니다.
구문
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T).
UINT32_MAX/UINT64_MAX UInt64를 반환합니다.
예시
사용 예시
Query
Response
bitmapOr
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapOrCardinality
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
UInt64
예시
사용 예시
Query
Response
bitmapSubsetInRange
bitmap— 부분 집합을 추출할 비트맵입니다.AggregateFunction(groupBitmap, T). -start— 범위의 시작(포함)입니다.UInt*-end— 범위의 끝(미포함)입니다.UInt*
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapSubsetLimit
range_start부터 최대 cardinality_limit개의 비트가 설정된 비트맵 부분집합을 반환합니다. 인덱싱은 1부터 시작합니다.
구문
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T). -range_start— 범위의 시작값(포함).UInt32-cardinality_limit— 부분 집합의 최대 카디널리티.UInt32
range_start부터 시작하는, 최대 cardinality_limit개의 비트가 설정된 비트맵을 반환합니다. AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapToArray
bitmapBuild와 반대되는 기능입니다.
구문
bitmap— 변환할 비트맵입니다.AggregateFunction(groupBitmap, T).
Array(UInt*)
예시
사용 예시
Query
Response
bitmapTransform
from_array의 특정 비트 값을 to_array의 해당 값으로 교체하여 비트맵에서 최대 N개의 비트를 변경합니다.
구문
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T). -from_array— 대체할 기존 설정 비트의 배열.Array(T). -to_array— 대체에 사용할 새 설정 비트의 배열.Array(T).
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapXor
bitmap1— 첫 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체입니다.AggregateFunction(groupBitmap, T).
AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response
bitmapXorCardinality
bitmap1— 첫 번째 비트맵 객체.AggregateFunction(groupBitmap, T). -bitmap2— 두 번째 비트맵 객체.AggregateFunction(groupBitmap, T).
UInt64
예시
사용 예시
Query
Response
subBitmap
offset 위치부터 시작하는 비트맵의 부분 집합을 반환합니다. 반환되는 비트맵의 최대 카디널리티는 cardinality_limit입니다.
구문
bitmap— 비트맵 객체.AggregateFunction(groupBitmap, T). -offset— 앞에서부터 건너뛸 1로 설정된 비트 수(0부터 시작).UInt32-cardinality_limit— 부분 집합에 포함할 1로 설정된 비트의 최대 개수.UInt32
offset개의 1로 설정된 비트를 건너뛴 다음부터 시작하는, 최대 limit개의 1로 설정된 비트를 포함하는 비트맵을 반환합니다 AggregateFunction(groupBitmap, T)
예시
사용 예시
Query
Response