Class KvStateInfo<K,​N,​V>

  • Type Parameters:
    K - The type of key the state is associated to
    N - The type of the namespace the state is associated to
    V - The type of values kept internally in state

    public class KvStateInfo<K,​N,​V>
    extends Object
    Metadata about a InternalKvState. This includes the serializers for the key, the namespace, and the values kept in the state.
    • Constructor Detail

      • KvStateInfo

        public 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 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 current KvStateInfo by duplicating all the included serializers.

        This method assumes correct implementation of the TypeSerializer.duplicate() method of the included serializers.

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object