Class RegisteredKeyValueStateBackendMetaInfo<N,S>

java.lang.Object
org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
org.apache.flink.runtime.state.v2.RegisteredKeyValueStateBackendMetaInfo<N,S>
Type Parameters:
S - Type of state value

public class RegisteredKeyValueStateBackendMetaInfo<N,S> extends RegisteredStateMetaInfoBase
Compound meta information for a registered state in a keyed state backend. This combines all serializers and the state name.
  • Constructor Details

    • RegisteredKeyValueStateBackendMetaInfo

      public RegisteredKeyValueStateBackendMetaInfo(@Nonnull String name, @Nonnull org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer)
    • RegisteredKeyValueStateBackendMetaInfo

      public RegisteredKeyValueStateBackendMetaInfo(@Nonnull String name, @Nonnull org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, @Nonnull StateSnapshotTransformer.StateSnapshotTransformFactory<S> stateSnapshotTransformFactory)
    • RegisteredKeyValueStateBackendMetaInfo

      public RegisteredKeyValueStateBackendMetaInfo(@Nonnull StateMetaInfoSnapshot snapshot)
  • Method Details

    • getStateType

      @Nonnull public org.apache.flink.api.common.state.v2.StateDescriptor.Type getStateType()
    • getNamespaceSerializer

      @Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<N> getNamespaceSerializer()
    • getStateSerializer

      @Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<S> getStateSerializer()
    • updateStateSerializer

      @Nonnull public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<S> updateStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<S> newStateSerializer)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • snapshot

      @Nonnull public StateMetaInfoSnapshot snapshot()
      Specified by:
      snapshot in class RegisteredStateMetaInfoBase
    • withSerializerUpgradesAllowed

      @Nonnull public RegisteredKeyValueStateBackendMetaInfo<N,S> withSerializerUpgradesAllowed()
      Description copied from class: RegisteredStateMetaInfoBase
      create a new metadata object with Lazy serializer provider using existing one as a snapshot. Sometimes metadata was just created or updated, but its StateSerializerProvider will not allow further updates. So this method could replace it with a new one that contains a fresh LazilyRegisteredStateSerializerProvider.
      Specified by:
      withSerializerUpgradesAllowed in class RegisteredStateMetaInfoBase
    • checkStateMetaInfo

      public void checkStateMetaInfo(org.apache.flink.api.common.state.v2.StateDescriptor<?> stateDesc)