public final class Key
extends java.lang.Object
implements scala.Product, scala.Serializable
Constructor and Description |
---|
Key(int persistenceId,
long sequenceNr,
int mappingId) |
Modifier and Type | Method and Description |
---|---|
static long |
counterFromBytes(byte[] bytes) |
static Key |
counterKey(int persistenceId) |
static byte[] |
counterToBytes(long ctr) |
static Key |
deletionKey(int persistenceId,
long sequenceNr) |
static boolean |
isDeletionKey(Key key) |
static boolean |
isMappingKey(Key key) |
static Key |
keyFromBytes(byte[] bytes) |
static byte[] |
keyToBytes(Key key) |
int |
mappingId() |
static Key |
mappingKey(int id) |
int |
persistenceId() |
long |
sequenceNr() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static byte[] keyToBytes(Key key)
public static Key keyFromBytes(byte[] bytes)
public static Key counterKey(int persistenceId)
public static byte[] counterToBytes(long ctr)
public static long counterFromBytes(byte[] bytes)
public static Key mappingKey(int id)
public static boolean isMappingKey(Key key)
public static Key deletionKey(int persistenceId, long sequenceNr)
public static boolean isDeletionKey(Key key)
public int persistenceId()
public long sequenceNr()
public int mappingId()