public class XxHash64 extends Object
The C++ source repository: https://github.com/Cyan4973/xxHash. It has a BSD 2-Clause License: http://www.opensource.org/licenses/bsd-license.php
Portions of this code were leveraged from OpenHFT/Zero-Allocation-Hashing, which has an Apache 2 license as does this site.
| Constructor and Description |
|---|
XxHash64() |
| Modifier and Type | Method and Description |
|---|---|
static long |
hashBooleans(boolean[] arr,
long cumOffsetBooleans,
long lengthBooleans,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashBytes(byte[] arr,
long cumOffsetBytes,
long lengthBytes,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashChars(char[] arr,
long cumOffsetChars,
long lengthChars,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashDoubles(double[] arr,
long cumOffsetDoubles,
long lengthDoubles,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashFloats(float[] arr,
long cumOffsetFloats,
long lengthFloats,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashInts(int[] arr,
long cumOffsetInts,
long lengthInts,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashLongs(long[] arr,
long cumOffsetLongs,
long lengthLongs,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
static long |
hashShorts(short[] arr,
long cumOffsetShorts,
long lengthShorts,
long seed)
Hash the given arr starting at the given offset and continuing for the given length using the
given seed.
|
public static long hashBooleans(boolean[] arr,
long cumOffsetBooleans,
long lengthBooleans,
long seed)
arr - the given arraycumOffsetBooleans - starting at this offsetlengthBooleans - continuing for this lengthseed - the given seedpublic static long hashBytes(byte[] arr,
long cumOffsetBytes,
long lengthBytes,
long seed)
arr - the given arraycumOffsetBytes - starting at this offsetlengthBytes - continuing for this lengthseed - the given seedpublic static long hashShorts(short[] arr,
long cumOffsetShorts,
long lengthShorts,
long seed)
arr - the given arraycumOffsetShorts - starting at this offsetlengthShorts - continuing for this lengthseed - the given seedpublic static long hashChars(char[] arr,
long cumOffsetChars,
long lengthChars,
long seed)
arr - the given arraycumOffsetChars - starting at this offsetlengthChars - continuing for this lengthseed - the given seedpublic static long hashInts(int[] arr,
long cumOffsetInts,
long lengthInts,
long seed)
arr - the given arraycumOffsetInts - starting at this offsetlengthInts - continuing for this lengthseed - the given seedpublic static long hashLongs(long[] arr,
long cumOffsetLongs,
long lengthLongs,
long seed)
arr - the given arraycumOffsetLongs - starting at this offsetlengthLongs - continuing for this lengthseed - the given seedpublic static long hashFloats(float[] arr,
long cumOffsetFloats,
long lengthFloats,
long seed)
arr - the given arraycumOffsetFloats - starting at this offsetlengthFloats - continuing for this lengthseed - the given seedpublic static long hashDoubles(double[] arr,
long cumOffsetDoubles,
long lengthDoubles,
long seed)
arr - the given arraycumOffsetDoubles - starting at this offsetlengthDoubles - continuing for this lengthseed - the given seedCopyright © 2015–2019 Yahoo! Inc.. All rights reserved.