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

XXHASH_64

説明

入力文字列の64ビットxxhash値を計算します

-注意:テスト結果により、xxhash_64のパフォーマンスはmurmur_hash3_64の約2倍であるため、ハッシュ値を計算する際は、murmur_hash3_64の代わりにxxhash_64を使用することを推奨します。

構文

XXHASH_64( <str> [ , <str> ... ] )

パラメータ

parameterdescription
<str>計算対象の64-bit xxhash値

戻り値

入力文字列の64-bit xxhash値を返します。

select xxhash_64(NULL), xxhash_64("hello"), xxhash_64("hello", "world");
+-----------------+----------------------+-----------------------------+
| xxhash_64(NULL) | xxhash_64('hello') | xxhash_64('hello', 'world') |
+-----------------+----------------------+-----------------------------+
| NULL | -7685981735718036227 | 7001965798170371843 |
+-----------------+----------------------+-----------------------------+