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|
|Modifier and Type||Method and Description|
Returns a 64-bit hash.
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 object
offsetBytes- Starting at this offset in bytes
lengthBytes- Continuing for this number of bytes
seed- use this seed for the hash function
public static long hash(long in, long seed)
in- a long
seed- A long valued seed.
Copyright © 2015–2020 The Apache Software Foundation. All rights reserved.