|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yahoo.ycsb.Utils
public class Utils
Utility functions.
Field Summary | |
---|---|
static int |
FNV_offset_basis_32
|
static long |
FNV_offset_basis_64
|
static int |
FNV_prime_32
|
static long |
FNV_prime_64
|
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static java.lang.String |
ASCIIString(int length)
Generate a random ASCII string of a given length. |
static int |
FNVhash32(int val)
32 bit FNV hash. |
static long |
FNVhash64(long val)
64 bit FNV hash. |
static int |
hash(int val)
Hash an integer value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FNV_offset_basis_32
public static final int FNV_prime_32
public static final long FNV_offset_basis_64
public static final long FNV_prime_64
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static java.lang.String ASCIIString(int length)
public static int hash(int val)
public static int FNVhash32(int val)
val
- The value to hash.
public static long FNVhash64(long val)
val
- The value to hash.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |