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

XXHASH_64

説明

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

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

エイリアス

  • XXHASH3_64

構文

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

パラメータ

parameterdescription
<str>計算される64ビットxxhash値

戻り値

入力文字列の64ビット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 |
+-----------------+----------------------+-----------------------------+