Package org.apache.flink.runtime.query
Class KvStateInfo<K,N,V>
- java.lang.Object
-
- org.apache.flink.runtime.query.KvStateInfo<K,N,V>
-
- Type Parameters:
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 state
public class KvStateInfo<K,N,V> extends Object
Metadata about aInternalKvState. This includes the serializers for the key, the namespace, and the values kept in the state.
-
-
Constructor Summary
Constructors Constructor Description KvStateInfo(org.apache.flink.api.common.typeutils.TypeSerializer<K> keySerializer, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<V> stateValueSerializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KvStateInfo<K,N,V>duplicate()Creates a deep copy of the currentKvStateInfoby duplicating all the included serializers.booleanequals(Object o)org.apache.flink.api.common.typeutils.TypeSerializer<K>getKeySerializer()org.apache.flink.api.common.typeutils.TypeSerializer<N>getNamespaceSerializer()org.apache.flink.api.common.typeutils.TypeSerializer<V>getStateValueSerializer()inthashCode()
-
-
-
Method Detail
-
getKeySerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<K> getKeySerializer()
- Returns:
- The serializer for the key the state is associated to.
-
getNamespaceSerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<N> getNamespaceSerializer()
- Returns:
- The serializer for the namespace the state is associated to.
-
getStateValueSerializer
public org.apache.flink.api.common.typeutils.TypeSerializer<V> getStateValueSerializer()
- Returns:
- The serializer for the values kept in the state.
-
duplicate
public KvStateInfo<K,N,V> duplicate()
Creates a deep copy of the currentKvStateInfoby duplicating all the included serializers.This method assumes correct implementation of the
TypeSerializer.duplicate()method of the included serializers.
-
-