Package com.scaleout.client.caching
Class KeyEncodingResult
java.lang.Object
com.scaleout.client.caching.KeyEncodingResult
The
KeyEncodingResult
returned by an implementation of KeyEncoder.encode(Object)
-
Constructor Summary
ConstructorDescriptionKeyEncodingResult
(byte[] keyBytes) Creates a KeyEncodingResult with the encoded keyKeyEncodingResult
(byte[] keyBytes, byte[] encodedKeyString) Create a KeyEncodingResult with the key bytes and an encoded key string. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Retrieve the encoded key string (if it exists).byte[]
keyBytes()
Retrieve the encoded key bytes.
-
Constructor Details
-
KeyEncodingResult
public KeyEncodingResult(byte[] keyBytes) Creates a KeyEncodingResult with the encoded key- Parameters:
keyBytes
- the encoded key
-
KeyEncodingResult
public KeyEncodingResult(byte[] keyBytes, byte[] encodedKeyString) Create a KeyEncodingResult with the key bytes and an encoded key string.- Parameters:
keyBytes
- the encoded keyencodedKeyString
- the key string
-
-
Method Details
-
encodedKeyString
public byte[] encodedKeyString()Retrieve the encoded key string (if it exists).- Returns:
- the encoded key string, or null if this key encoding result has no encoded key string
-
keyBytes
public byte[] keyBytes()Retrieve the encoded key bytes.- Returns:
- the encoded key bytes.
-