public class XxHash 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 See LICENSE.
Portions of this code were adapted from OpenHFT/Zero-Allocation-Hashing, which has an Apache 2 license as does this site. See LICENSE.
| Constructor and Description |
|---|
XxHash() |
| Modifier and Type | Method and Description |
|---|---|
static long |
hash(long in,
long seed)
Returns a 64-bit hash.
|
static long |
hash(org.apache.datasketches.memory.Memory mem,
long offsetBytes,
long lengthBytes,
long seed)
Compute the hash of the given Memory object.
|
public static long hash(org.apache.datasketches.memory.Memory mem,
long offsetBytes,
long lengthBytes,
long seed)
mem - The given Memory objectoffsetBytes - Starting at this offset in byteslengthBytes - Continuing for this number of bytesseed - use this seed for the hash functionpublic static long hash(long in,
long seed)
in - a longseed - A long valued seed.Copyright © 2015–2020 The Apache Software Foundation. All rights reserved.