com.yahoo.ycsb
Class Utils
java.lang.Object
com.yahoo.ycsb.Utils
public class Utils
- extends java.lang.Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FNV_offset_basis_32
public static final int FNV_offset_basis_32
- See Also:
- Constant Field Values
FNV_prime_32
public static final int FNV_prime_32
- See Also:
- Constant Field Values
FNV_offset_basis_64
public static final long FNV_offset_basis_64
- See Also:
- Constant Field Values
FNV_prime_64
public static final long FNV_prime_64
- See Also:
- Constant Field Values
Utils
public Utils()
ASCIIString
public static java.lang.String ASCIIString(int length)
hash
public static int hash(int val)
JenkinsHash
public static int JenkinsHash(int val)
FNVhash32
public static int FNVhash32(int val)
- 32 bit FNV hash. Produces more "random" hashes than (say) String.hashCode().
- Parameters:
val
- The value to hash.
- Returns:
- The hash value
FNVhash64
public static long FNVhash64(long val)
- 64 bit FNV hash. Produces more "random" hashes than (say) String.hashCode().
- Parameters:
val
- The value to hash.
- Returns:
- The hash value