Class StateMetaInfoSnapshot
java.lang.Object
org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot
Generalized snapshot for meta information about one state in a state backend (e.g.
RegisteredKeyValueStateBackendMetaInfo).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum that defines the different types of state that live in Flink backends.static enumPredefined keys for the most common options in the meta info.static enumPredefined keys for the most common serializer types in the meta info. -
Constructor Summary
ConstructorsConstructorDescriptionStateMetaInfoSnapshot(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
Modifier and TypeMethodDescriptiongetName()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<?>org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<?>
-
Constructor Details
-
StateMetaInfoSnapshot
-
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 Details
-
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
-
getOption
-
getOptionsImmutable
-
getName
-
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.
-