メインコンテンツまでスキップ
バージョン: 26.x

BITMAP_HASH64

説明

任意の入力タイプの64ビットハッシュ値を計算し、そのハッシュ値を含むBitmapを返します。

構文

BITMAP_HASH64(<expr>)

パラメータ

Parameterデスクリプション
<expr>任意の値またはフィールド式

Return Value

パラメータ<expr>の64ビットハッシュ値を含むBitmapを返します。

  • パラメータがNULL値の場合、Empty Bitmapを返します

Examples

値の64ビットハッシュを計算するには、以下を使用できます:

select bitmap_to_string(bitmap_hash64('hello'));

結果は次のようになります:

+------------------------------------------+
| bitmap_to_string(bitmap_hash64('hello')) |
+------------------------------------------+
| 15231136565543391023 |
+------------------------------------------+
select bitmap_to_string(bitmap_hash64(NULL));

結果は次のようになります:

+---------------------------------------+
| bitmap_to_string(bitmap_hash64(NULL)) |
+---------------------------------------+
| |
+---------------------------------------+