public final class JedisClusterCRC16
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
LOOKUP_TABLE |
| Modifier | Constructor and Description |
|---|---|
private |
JedisClusterCRC16() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCRC16(byte[] bytes) |
static int |
getCRC16(byte[] bytes,
int s,
int e)
Create a CRC16 checksum from the bytes.
|
static int |
getCRC16(java.lang.String key) |
static int |
getSlot(byte[] key) |
static int |
getSlot(java.lang.String key) |
public static int getSlot(java.lang.String key)
public static int getSlot(byte[] key)
public static int getCRC16(byte[] bytes,
int s,
int e)
bytes - public static int getCRC16(byte[] bytes)
public static int getCRC16(java.lang.String key)