Add in code doc to sipHash128Reference

This commit is contained in:
Vladimir C 2023-02-08 11:04:58 +01:00 committed by GitHub
parent b627e6d827
commit 8385263ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -15,8 +15,16 @@ REGISTER_FUNCTION(Hashing)
factory.registerFunction<FunctionSipHash64Keyed>(); factory.registerFunction<FunctionSipHash64Keyed>();
factory.registerFunction<FunctionSipHash128>(); factory.registerFunction<FunctionSipHash128>();
factory.registerFunction<FunctionSipHash128Keyed>(); factory.registerFunction<FunctionSipHash128Keyed>();
factory.registerFunction<FunctionSipHash128Reference>(); factory.registerFunction<FunctionSipHash128Reference>({
factory.registerFunction<FunctionSipHash128ReferenceKeyed>(); "Like [sipHash128](#hash_functions-siphash128) but implements the 128-bit algorithm from the original authors of SipHash.",
Documentation::Examples{{"hash", "SELECT hex(sipHash128Reference('foo', '\\x01', 3))"}},
Documentation::Categories{"Hash"}
});
factory.registerFunction<FunctionSipHash128ReferenceKeyed>({
"Same as [sipHash128Reference](#hash_functions-siphash128reference) but additionally takes an explicit key argument instead of using a fixed key.",
Documentation::Examples{{"hash", "SELECT hex(sipHash128ReferenceKeyed((506097522914230528, 1084818905618843912),'foo', '\\x01', 3));"}},
Documentation::Categories{"Hash"}
});
factory.registerFunction<FunctionCityHash64>(); factory.registerFunction<FunctionCityHash64>();
factory.registerFunction<FunctionFarmFingerprint64>(); factory.registerFunction<FunctionFarmFingerprint64>();
factory.registerFunction<FunctionFarmHash64>(); factory.registerFunction<FunctionFarmHash64>();

View File

@ -647,8 +647,6 @@ sin
sinh sinh
sipHash128 sipHash128
sipHash128Keyed sipHash128Keyed
sipHash128Reference
sipHash128ReferenceKeyed
sipHash64 sipHash64
sipHash64Keyed sipHash64Keyed
sleep sleep