Package com.alibaba.druid.util
Class FnvHash
java.lang.Object
com.alibaba.druid.util.FnvHash
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longfnv_32_lower(String key) static longfnv1a_64(byte[] input, int offset, int end) static longfnv1a_64(char[] chars) static longstatic longfnv1a_64(StringBuilder input) static longstatic longfnv1a_64_lower(long basic, StringBuilder key) static longfnv1a_64_lower(String key) static long[]fnv1a_64_lower(String[] strings, boolean sort) static longstatic longhashCode64(long basic, String name) static longhashCode64(long basic, String key, int offset, int end) static longhashCode64(String name) lower and normalized and fnv_1a_64static longhashCode64(String key, int offset, int end) static longhashCode64(String owner, String name) normalized and lower and fnv1a_64_hash
-
Field Details
-
BASIC
public static final long BASIC- See Also:
-
PRIME
public static final long PRIME- See Also:
-
-
Constructor Details
-
FnvHash
public FnvHash()
-
-
Method Details
-
fnv1a_64
-
fnv1a_64
-
fnv1a_64
-
fnv1a_64
public static long fnv1a_64(byte[] input, int offset, int end) -
fnv1a_64
public static long fnv1a_64(char[] chars) -
hashCode64
lower and normalized and fnv_1a_64- Parameters:
name-- Returns:
-
fnv1a_64_lower
-
fnv1a_64_lower
-
fnv1a_64_lower
-
hashCode64
-
hashCode64
-
hashCode64
-
fnv_32_lower
-
fnv1a_64_lower
-
hashCode64
normalized and lower and fnv1a_64_hash- Parameters:
owner-name-- Returns:
-