N
- The type of the namespace.public interface KvState<N>
Modifier and Type | Method and Description |
---|---|
byte[] |
getSerializedValue(byte[] serializedKeyAndNamespace)
Returns the serialized value for the given key and namespace.
|
void |
setCurrentNamespace(N namespace)
Sets the current namespace, which will be used when using the state access methods.
|
void setCurrentNamespace(N namespace)
namespace
- The namespace.byte[] getSerializedValue(byte[] serializedKeyAndNamespace) throws Exception
If no value is associated with key and namespace, null
is returned.
serializedKeyAndNamespace
- Serialized key and namespacenull
if no value is associated
with the key and namespace.Exception
- Exceptions during serialization are forwardedCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.