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
public abstract class RegisteredStateMetaInfoBase extends Object
Base class for all registered state in state backends.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegisteredStateMetaInfoBase.KeyWrapper class that can be used to represent the wrappedRegisteredStateMetaInfoBaseas key in aMap.
-
Constructor Summary
Constructors Constructor Description RegisteredStateMetaInfoBase(String name)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RegisteredStateMetaInfoBase.KeyasMapKey()Returns a wrapper that can be used as a key inMap.static RegisteredStateMetaInfoBasefromMetaInfoSnapshot(StateMetaInfoSnapshot snapshot)StringgetName()abstract StateMetaInfoSnapshotsnapshot()abstract RegisteredStateMetaInfoBasewithSerializerUpgradesAllowed()create a new metadata object with Lazy serializer provider using existing one as a snapshot.
-
-
-
Field Detail
-
name
@Nonnull protected final String name
The name of the state
-
-
Constructor Detail
-
RegisteredStateMetaInfoBase
public RegisteredStateMetaInfoBase(@Nonnull String name)
-
-
Method Detail
-
getName
@Nonnull public String getName()
-
snapshot
@Nonnull public abstract StateMetaInfoSnapshot snapshot()
-
withSerializerUpgradesAllowed
@Nonnull public abstract RegisteredStateMetaInfoBase 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
public final RegisteredStateMetaInfoBase.Key asMapKey()
Returns a wrapper that can be used as a key inMap.
-
-