-State を付けて構築する方法です。もう 1 つは、Array オブジェクトから bitmap を構築する方法です。
bitmapAnd
bitmap1— 最初のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。 -bitmap2— 2 番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapAndCardinality
bitmap1— 1 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T). -bitmap2— 2 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T).
UInt64
例
使用例
Query
Response
bitmapAndnot
bitmap1— 1 番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。 -bitmap2— 2 番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapAndnotCardinality
bitmap1— 1つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T). -bitmap2— 2つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T).
bitmap1 AND-NOT bitmap2 の結果における、セットされているビット数を返します。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— 1 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。 -bitmap2— 2 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
1、そうでない場合は 0 を返します UInt8
例
使用例
Query
Response
bitmapHasAny
bitmap1— 1 番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T). -bitmap2— 2 番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T).
1、それ以外の場合は 0 を返します。UInt8
例
使用例
Query
Response
bitmapMax
0 を返します。
構文
bitmap— ビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
0 を返します。UInt64
例
使用例
Query
Response
bitmapMin
UINT32_MAX を返します (bitmap に 2^64 を超えるビットが含まれる場合は UINT64_MAX) 。
構文
bitmap— ビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
UINT32_MAX/UINT64_MAX UInt64 を返します。
例
使用例
Query
Response
bitmapOr
bitmap1— 1 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。 -bitmap2— 2 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapOrCardinality
bitmap1— 最初のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。 -bitmap2— 2番目のビットマップオブジェクト。AggregateFunction(groupBitmap, T)。
UInt64
例
使用例
Query
Response
bitmapSubsetInRange
bitmap— subset を抽出する対象のビットマップ。AggregateFunction(groupBitmap, T)。 -start— 範囲の開始 (含む) 。UInt*-end— 範囲の終了 (含まない) 。UInt*
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapSubsetLimit
range_start から始まる bitmap の subset を返します。含まれる set bits の数は最大 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— 変換対象の bitmap。AggregateFunction(groupBitmap, T)。
Array(UInt*)
例
使用例
Query
Response
bitmapTransform
from_array 内の特定のビット値を to_array 内の対応する値に置き換えることで、bitmap 内の最大 N ビットを変更します。
構文
bitmap— ビットマップオブジェクト。AggregateFunction(groupBitmap, T). -from_array— 置き換える元の set bits の Array。Array(T). -to_array— 置き換え先の新しい set bits の Array。Array(T).
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapXor
bitmap1— 1 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T). -bitmap2— 2 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T).
AggregateFunction(groupBitmap, T)
例
使用例
Query
Response
bitmapXorCardinality
bitmap1— 1 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T). -bitmap2— 2 つ目のビットマップオブジェクト。AggregateFunction(groupBitmap, T).
UInt64
例
使用例
Query
Response
subBitmap
offset の位置から始まるビットマップのサブセットを返します。返されるビットマップの最大カーディナリティは cardinality_limit です。
構文
bitmap— ビットマップオブジェクト。AggregateFunction(groupBitmap, T). -offset— 先頭からスキップするセットされているビット数 (0ベース) 。UInt32-cardinality_limit— subset に含めるセットされているビットの最大数。UInt32
offset 個のセットされているビットをスキップした後から、最大 limit 個のセットされているビットを含むビットマップを返します AggregateFunction(groupBitmap, T)
例
使用例
Query
Response