Class StateMetaInfoSnapshot

java.lang.Object
org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot

public class StateMetaInfoSnapshot extends Object
Generalized snapshot for meta information about one state in a state backend (e.g. RegisteredKeyValueStateBackendMetaInfo).
  • Constructor Details

    • StateMetaInfoSnapshot

      public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots)
    • StateMetaInfoSnapshot

      public StateMetaInfoSnapshot(@Nonnull String name, @Nonnull StateMetaInfoSnapshot.BackendStateType backendStateType, @Nonnull Map<String,String> options, @Nonnull Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots, @Nonnull Map<String,org.apache.flink.api.common.typeutils.TypeSerializer<?>> serializers)
      TODO this variant, which requires providing the serializers, TODO should actually be removed, leaving only StateMetaInfoSnapshot(String, BackendStateType, Map, Map). TODO This is still used by snapshot extracting methods (i.e. computeSnapshot() method of specific state meta TODO info subclasses), and will be removed once all serializers have the restoreSerializer() factory method implemented.
  • Method Details

    • getBackendStateType

      @Nonnull public StateMetaInfoSnapshot.BackendStateType getBackendStateType()
    • getTypeSerializerSnapshot

      @Nullable public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull String key)
    • getTypeSerializerSnapshot

      @Nullable public org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?> getTypeSerializerSnapshot(@Nonnull StateMetaInfoSnapshot.CommonSerializerKeys key)
    • getOption

      @Nullable public String getOption(@Nonnull String key)
    • getOption

      @Nullable public String getOption(@Nonnull StateMetaInfoSnapshot.CommonOptionsKeys key)
    • getOptionsImmutable

      @Nonnull public Map<String,String> getOptionsImmutable()
    • getName

      @Nonnull public String getName()
    • getSerializerSnapshotsImmutable

      @Nonnull public Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> getSerializerSnapshotsImmutable()
    • getTypeSerializer

      @Nullable public org.apache.flink.api.common.typeutils.TypeSerializer<?> getTypeSerializer(@Nonnull String key)
      TODO this method should be removed once the serializer map is removed.