Package com.redis.om.spring.convert
Class MappingRedisOMConverter.BinaryKeyspaceIdentifier
java.lang.Object
com.redis.om.spring.convert.MappingRedisOMConverter.BinaryKeyspaceIdentifier
- Enclosing class:
- MappingRedisOMConverter
Value object representing a binary Redis Hash/Object identifier composed of
keyspace and object id in the form of keyspace:id.
- Since:
- 1.8.10
- Author:
- Mark Paluch, Stefan Berger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteprotected static final byte[]protected static final byte[] -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getId()byte[]booleanstatic booleanisValid(byte[] key) Check whether thekeyis valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.of(byte[] key) Parse a binarykeyintoMappingRedisOMConverter.BinaryKeyspaceIdentifier.
-
Field Details
-
PHANTOM
protected static final byte[] PHANTOM -
DELIMITER
public static final byte DELIMITER- See Also:
-
PHANTOM_SUFFIX
protected static final byte[] PHANTOM_SUFFIX
-
-
Method Details
-
of
Parse a binarykeyintoMappingRedisOMConverter.BinaryKeyspaceIdentifier.- Parameters:
key- the binary key representation.- Returns:
MappingRedisOMConverter.BinaryKeyspaceIdentifierfor binary key.
-
isValid
public static boolean isValid(byte[] key) Check whether thekeyis valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.- Parameters:
key- the key.- Returns:
- true if the key is valid.
-
getKeyspace
public byte[] getKeyspace() -
getId
public byte[] getId() -
isPhantomKey
public boolean isPhantomKey()
-