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
Metadata about a
InternalKvState. This includes the serializers for the key, the
namespace, and the values kept in the state.-
Constructor Summary
ConstructorsConstructorDescriptionKvStateInfo(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
Modifier and TypeMethodDescriptionKvStateInfo<K,N, V> Creates a deep copy of the currentKvStateInfoby duplicating all the included serializers.booleanorg.apache.flink.api.common.typeutils.TypeSerializer<K>org.apache.flink.api.common.typeutils.TypeSerializer<N>org.apache.flink.api.common.typeutils.TypeSerializer<V>inthashCode()
-
Constructor Details
-
KvStateInfo
-
-
Method Details
-
getKeySerializer
- Returns:
- The serializer for the key the state is associated to.
-
getNamespaceSerializer
- Returns:
- The serializer for the namespace the state is associated to.
-
getStateValueSerializer
- Returns:
- The serializer for the values kept in the state.
-
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. -
equals
-
hashCode
public int hashCode()
-