public class XxHash extends Object
This class wraps the Memory Component XxHash implementation.
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–2024 The Apache Software Foundation. All rights reserved.