public class JedisClusterCRC16
extends java.lang.Object
Appendix A. CRC16 reference implementation in ANSI C| Modifier and Type | Field and Description |
|---|---|
private static int[] |
LOOKUP_TABLE |
| Constructor and Description |
|---|
JedisClusterCRC16() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getCRC16(byte[] bytes)
Create a CRC16 checksum from the bytes.
|
static int |
getCRC16(java.lang.String key) |
static int |
getSlot(java.lang.String key) |
public static int getSlot(java.lang.String key)
public static int getCRC16(byte[] bytes)
bytes - https://github.com/xetorthio/jedis/pull/733#issuecomment-55840331public static int getCRC16(java.lang.String key)