public class HashID extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
HashID.Size
Represents HashID size in bits.
|
| Constructor and Description |
|---|
HashID() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getXXHash32(byte[] message,
int hashSeed) |
static int |
getXXHash32(String message,
int hashSeed) |
static byte[] |
hash(byte[] messageBytes,
HashID.Size bits)
Get the hash value for a byte array and for the desired @
HashID.Size. |
static byte[] |
hash(String message,
HashID.Size bits)
Get the hash value for a string message and for the desired @
HashID.Size. |
public static byte[] hash(String message, HashID.Size bits)
HashID.Size.message - - String message to get the hash value forbits - - @HashID.Size of the hash valuepublic static byte[] hash(byte[] messageBytes,
HashID.Size bits)
HashID.Size.messageBytes - - Byte array message to get the hash value forbits - - @HashID.Size of the hash valuepublic static int getXXHash32(String message, int hashSeed)
public static int getXXHash32(byte[] message,
int hashSeed)
Copyright © 2024 The Apache Software Foundation. All rights reserved.