Class RegisteredKeyAndUserKeyValueStateBackendMetaInfo<N,UK,S>
- java.lang.Object
-
- org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
-
- org.apache.flink.runtime.state.v2.RegisteredKeyValueStateBackendMetaInfo<N,S>
-
- org.apache.flink.runtime.state.v2.RegisteredKeyAndUserKeyValueStateBackendMetaInfo<N,UK,S>
-
- Type Parameters:
S
- Type of state value
public class RegisteredKeyAndUserKeyValueStateBackendMetaInfo<N,UK,S> extends RegisteredKeyValueStateBackendMetaInfo<N,S>
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.v2.RegisteredKeyValueStateBackendMetaInfo
namespaceSerializerProvider, stateSerializerProvider, stateSnapshotTransformFactory, stateType
-
Fields inherited from class org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
name
-
-
Constructor Summary
Constructors Constructor Description RegisteredKeyAndUserKeyValueStateBackendMetaInfo(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, org.apache.flink.api.common.typeutils.TypeSerializer<UK> userKeySerializer)
RegisteredKeyAndUserKeyValueStateBackendMetaInfo(String name, org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, StateSerializerProvider<N> namespaceSerializerProvider, StateSerializerProvider<S> stateSerializerProvider, StateSerializerProvider<UK> userKeySerializerProvider, StateSnapshotTransformer.StateSnapshotTransformFactory<S> stateSnapshotTransformFactory)
RegisteredKeyAndUserKeyValueStateBackendMetaInfo(StateMetaInfoSnapshot snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.apache.flink.api.common.typeutils.TypeSerializer<UK>
getUserKeySerializer()
int
hashCode()
StateMetaInfoSnapshot
snapshot()
String
toString()
org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<UK>
updateUserKeySerializer(org.apache.flink.api.common.typeutils.TypeSerializer<UK> newStateSerializer)
RegisteredKeyAndUserKeyValueStateBackendMetaInfo<N,UK,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.v2.RegisteredKeyValueStateBackendMetaInfo
checkStateMetaInfo, fromMetaInfoSnapshot, getNamespaceSerializer, getStateSerializer, getStateType, updateNamespaceSerializer, updateStateSerializer
-
Methods inherited from class org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
asMapKey, getName
-
-
-
-
Constructor Detail
-
RegisteredKeyAndUserKeyValueStateBackendMetaInfo
public RegisteredKeyAndUserKeyValueStateBackendMetaInfo(@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, @Nullable org.apache.flink.api.common.typeutils.TypeSerializer<UK> userKeySerializer)
-
RegisteredKeyAndUserKeyValueStateBackendMetaInfo
public RegisteredKeyAndUserKeyValueStateBackendMetaInfo(@Nonnull StateMetaInfoSnapshot snapshot)
-
RegisteredKeyAndUserKeyValueStateBackendMetaInfo
public RegisteredKeyAndUserKeyValueStateBackendMetaInfo(@Nonnull String name, @Nonnull org.apache.flink.api.common.state.v2.StateDescriptor.Type stateType, @Nonnull StateSerializerProvider<N> namespaceSerializerProvider, @Nonnull StateSerializerProvider<S> stateSerializerProvider, @Nullable StateSerializerProvider<UK> userKeySerializerProvider, @Nonnull StateSnapshotTransformer.StateSnapshotTransformFactory<S> stateSnapshotTransformFactory)
-
-
Method Detail
-
getUserKeySerializer
@Nullable public org.apache.flink.api.common.typeutils.TypeSerializer<UK> getUserKeySerializer()
-
updateUserKeySerializer
@Nonnull public org.apache.flink.api.common.typeutils.TypeSerializerSchemaCompatibility<UK> updateUserKeySerializer(org.apache.flink.api.common.typeutils.TypeSerializer<UK> newStateSerializer)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRegisteredKeyValueStateBackendMetaInfo<N,S>
-
toString
public String toString()
- Overrides:
toString
in classRegisteredKeyValueStateBackendMetaInfo<N,S>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRegisteredKeyValueStateBackendMetaInfo<N,S>
-
snapshot
@Nonnull public StateMetaInfoSnapshot snapshot()
- Overrides:
snapshot
in classRegisteredKeyValueStateBackendMetaInfo<N,S>
-
withSerializerUpgradesAllowed
@Nonnull public RegisteredKeyAndUserKeyValueStateBackendMetaInfo<N,UK,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.- Overrides:
withSerializerUpgradesAllowed
in classRegisteredKeyValueStateBackendMetaInfo<N,S>
-
-