Class RegisteredKeyValueStateBackendMetaInfo<N,S>
- java.lang.Object
-
- org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
-
- org.apache.flink.runtime.state.v2.RegisteredKeyValueStateBackendMetaInfo<N,S>
-
- Type Parameters:
S
- Type of state value
public class RegisteredKeyValueStateBackendMetaInfo<N,S> extends RegisteredStateMetaInfoBase
Compound meta information for a registered state in a keyed state backend. This combines all serializers and the state name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
RegisteredStateMetaInfoBase.Key
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
name
-
-
Constructor Summary
Constructors Constructor Description RegisteredKeyValueStateBackendMetaInfo(String name, org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer)
RegisteredKeyValueStateBackendMetaInfo(String name, org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, StateSnapshotTransformer.StateSnapshotTransformFactory<S> stateSnapshotTransformFactory)
RegisteredKeyValueStateBackendMetaInfo(StateMetaInfoSnapshot snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkStateMetaInfo(org.apache.flink.api.common.state.v2.StateDescriptor<?> stateDesc)
boolean
equals(Object o)
org.apache.flink.api.common.typeutils.TypeSerializer<N>
getNamespaceSerializer()
org.apache.flink.api.common.typeutils.TypeSerializer<S>
getStateSerializer()
org.apache.flink.api.common.state.v2.StateDescriptor.Type
getStateType()
int
hashCode()
StateMetaInfoSnapshot
snapshot()
String
toString()
org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<S>
updateStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<S> newStateSerializer)
RegisteredKeyValueStateBackendMetaInfo<N,S>
withSerializerUpgradesAllowed()
create a new metadata object with Lazy serializer provider using existing one as a snapshot.-
Methods inherited from class org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
asMapKey, fromMetaInfoSnapshot, getName
-
-
-
-
Constructor Detail
-
RegisteredKeyValueStateBackendMetaInfo
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull String name, @Nonnull org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer)
-
RegisteredKeyValueStateBackendMetaInfo
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull String name, @Nonnull org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer, @Nonnull StateSnapshotTransformer.StateSnapshotTransformFactory<S> stateSnapshotTransformFactory)
-
RegisteredKeyValueStateBackendMetaInfo
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull StateMetaInfoSnapshot snapshot)
-
-
Method Detail
-
getStateType
@Nonnull public org.apache.flink.api.common.state.v2.StateDescriptor.Type getStateType()
-
getNamespaceSerializer
@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<N> getNamespaceSerializer()
-
getStateSerializer
@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializer<S> getStateSerializer()
-
updateStateSerializer
@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<S> updateStateSerializer(org.apache.flink.api.common.typeutils.TypeSerializer<S> newStateSerializer)
-
snapshot
@Nonnull public StateMetaInfoSnapshot snapshot()
- Specified by:
snapshot
in classRegisteredStateMetaInfoBase
-
withSerializerUpgradesAllowed
@Nonnull public RegisteredKeyValueStateBackendMetaInfo<N,S> withSerializerUpgradesAllowed()
Description copied from class:RegisteredStateMetaInfoBase
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.- Specified by:
withSerializerUpgradesAllowed
in classRegisteredStateMetaInfoBase
-
checkStateMetaInfo
public void checkStateMetaInfo(org.apache.flink.api.common.state.v2.StateDescriptor<?> stateDesc)
-
-