improved sql parser.

This commit is contained in:
wenshao
2017-09-04 03:10:45 +08:00
parent ac3626617a
commit 5badd35b7f
9 changed files with 170 additions and 6 deletions
@@ -36,7 +36,19 @@ public final class FnvHash {
return hash;
}
public static long fnv1a_64(char[] chars) {
if (chars == null) {
return 0;
}
long hash = BASIC;
for (int i = 0; i < chars.length; ++i) {
char c = chars[i];
hash ^= c;
hash *= PRIME;
}
return hash;
}
/**
* lower & normalized & fnv_1a_64