public class ShardedKey<K>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ShardedKey.Coder<K> |
| Modifier | Constructor and Description |
|---|---|
protected |
ShardedKey(K key,
byte[] shardId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
K |
getKey() |
int |
hashCode() |
static <K> ShardedKey<K> |
of(K key,
byte[] shardId)
Creates a ShardedKey with given key and shard id.
|
java.lang.String |
toString() |
protected ShardedKey(K key, byte[] shardId)
public static <K> ShardedKey<K> of(K key, byte[] shardId)
public K getKey()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object