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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStateMetaInfoSnapshot.BackendStateTypeEnum that defines the different types of state that live in Flink backends.static classStateMetaInfoSnapshot.CommonOptionsKeysPredefined keys for the most common options in the meta info.static classStateMetaInfoSnapshot.CommonSerializerKeysPredefined keys for the most common serializer types in the meta info.
-
Constructor Summary
Constructors Constructor Description StateMetaInfoSnapshot(String name, StateMetaInfoSnapshot.BackendStateType backendStateType, Map<String,String> options, Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots)StateMetaInfoSnapshot(String name, StateMetaInfoSnapshot.BackendStateType backendStateType, Map<String,String> options, Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>> serializerSnapshots, Map<String,org.apache.flink.api.common.typeutils.TypeSerializer<?>> serializers)TODO this variant, which requires providing the serializers, TODO should actually be removed, leaving onlyStateMetaInfoSnapshot(String, BackendStateType, Map, Map).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateMetaInfoSnapshot.BackendStateTypegetBackendStateType()StringgetName()StringgetOption(String key)StringgetOption(StateMetaInfoSnapshot.CommonOptionsKeys key)Map<String,String>getOptionsImmutable()Map<String,org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>>getSerializerSnapshotsImmutable()org.apache.flink.api.common.typeutils.TypeSerializer<?>getTypeSerializer(String key)TODO this method should be removed once the serializer map is removed.org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>getTypeSerializerSnapshot(String key)org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>getTypeSerializerSnapshot(StateMetaInfoSnapshot.CommonSerializerKeys key)
-
-
-
Constructor Detail
-
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 onlyStateMetaInfoSnapshot(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 Detail
-
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 StateMetaInfoSnapshot.CommonOptionsKeys key)
-
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.
-
-