public static class MappingRedisConverter.BinaryKeyspaceIdentifier extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
DELIMITTER |
static byte[] |
PHANTOM |
static byte[] |
PHANTOM_SUFFIX |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getId() |
byte[] |
getKeyspace() |
boolean |
isPhantomKey() |
static boolean |
isValid(byte[] key)
Check whether the
key is valid, in particular whether the key contains a keyspace and an id part in the
form of keyspace:id. |
static MappingRedisConverter.BinaryKeyspaceIdentifier |
of(byte[] key)
Parse a binary
key into MappingRedisConverter.BinaryKeyspaceIdentifier. |
public static final byte[] PHANTOM
public static final byte DELIMITTER
public static final byte[] PHANTOM_SUFFIX
public static MappingRedisConverter.BinaryKeyspaceIdentifier of(byte[] key)
key into MappingRedisConverter.BinaryKeyspaceIdentifier.key - the binary key representation.MappingRedisConverter.BinaryKeyspaceIdentifier for binary key.public static boolean isValid(byte[] key)
key is valid, in particular whether the key contains a keyspace and an id part in the
form of keyspace:id.key - the key.public byte[] getKeyspace()
public byte[] getId()
public boolean isPhantomKey()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.