N
- The type of the namespace.public interface InternalKvState<N> extends State
InternalKvState
is the root of the internal state type hierarchy, similar to the
State
being the root of the public API state hierarchy.
The internal state classes give access to the namespace getters and setters and access to additional functionality, like raw value access or state merging.
The public API state hierarchy is intended to be programmed against by Flink applications. The internal state hierarchy holds all the auxiliary methods that are used by the runtime and not intended to be used by user applications. These internal methods are considered of limited use to users and only confusing, and are usually not regarded as stable across releases.
Each specific type in the internal state hierarchy extends the type from the public state hierarchy:
State | +-------------------InternalKvState | | MergingState | | | +-----------------InternalMergingState | | +--------+------+ | | | | ReducingState ListState +-----+-----------------+ | | | | +-----------+ +----------- -----------------InternalListState | | +---------InternalReducingState
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–2018 The Apache Software Foundation. All rights reserved.