K
- The type of key the state is associated toN
- The type of the namespace the state is associated toV
- The type of values kept internally in statepublic class KvStateInfo<K,N,V> extends Object
InternalKvState
. This includes the serializers for the key, the
namespace, and the values kept in the state.Constructor and Description |
---|
KvStateInfo(TypeSerializer<K> keySerializer,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<V> stateValueSerializer) |
Modifier and Type | Method and Description |
---|---|
KvStateInfo<K,N,V> |
duplicate()
Creates a deep copy of the current
KvStateInfo by duplicating all the included
serializers. |
boolean |
equals(Object o) |
TypeSerializer<K> |
getKeySerializer() |
TypeSerializer<N> |
getNamespaceSerializer() |
TypeSerializer<V> |
getStateValueSerializer() |
int |
hashCode() |
public KvStateInfo(TypeSerializer<K> keySerializer, TypeSerializer<N> namespaceSerializer, TypeSerializer<V> stateValueSerializer)
public TypeSerializer<K> getKeySerializer()
public TypeSerializer<N> getNamespaceSerializer()
public TypeSerializer<V> getStateValueSerializer()
public KvStateInfo<K,N,V> duplicate()
KvStateInfo
by duplicating all the included
serializers.
This method assumes correct implementation of the TypeSerializer.duplicate()
method of the included serializers.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.