Package org.apache.flink.runtime.state
Class RegisteredStateMetaInfoBase
java.lang.Object
org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
- Direct Known Subclasses:
RegisteredBroadcastStateBackendMetaInfo,RegisteredKeyValueStateBackendMetaInfo,RegisteredKeyValueStateBackendMetaInfo,RegisteredOperatorStateBackendMetaInfo,RegisteredPriorityQueueStateBackendMetaInfo
Base class for all registered state in state backends.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWrapper class that can be used to represent the wrappedRegisteredStateMetaInfoBaseas key in aMap. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMapKey()Returns a wrapper that can be used as a key inMap.static RegisteredStateMetaInfoBasefromMetaInfoSnapshot(StateMetaInfoSnapshot snapshot) getName()abstract StateMetaInfoSnapshotsnapshot()abstract RegisteredStateMetaInfoBasecreate a new metadata object with Lazy serializer provider using existing one as a snapshot.
-
Field Details
-
name
The name of the state
-
-
Constructor Details
-
RegisteredStateMetaInfoBase
-
-
Method Details
-
getName
-
snapshot
-
withSerializerUpgradesAllowed
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. -
fromMetaInfoSnapshot
public static RegisteredStateMetaInfoBase fromMetaInfoSnapshot(@Nonnull StateMetaInfoSnapshot snapshot) -
asMapKey
Returns a wrapper that can be used as a key inMap.
-