Package org.apache.flink.runtime.state
Class RegisteredPriorityQueueStateBackendMetaInfo<T>
- java.lang.Object
-
- org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
-
- org.apache.flink.runtime.state.RegisteredPriorityQueueStateBackendMetaInfo<T>
-
public class RegisteredPriorityQueueStateBackendMetaInfo<T> extends RegisteredStateMetaInfoBase
Meta information about a priority queue state in a backend.
-
-
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 RegisteredPriorityQueueStateBackendMetaInfo(String name, TypeSerializer<T> elementSerializer)
RegisteredPriorityQueueStateBackendMetaInfo(StateMetaInfoSnapshot snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisteredPriorityQueueStateBackendMetaInfo
deepCopy()
TypeSerializer<T>
getElementSerializer()
TypeSerializer<T>
getPreviousElementSerializer()
StateMetaInfoSnapshot
snapshot()
TypeSerializerSchemaCompatibility<T>
updateElementSerializer(TypeSerializer<T> newElementSerializer)
RegisteredPriorityQueueStateBackendMetaInfo<T>
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
-
RegisteredPriorityQueueStateBackendMetaInfo
public RegisteredPriorityQueueStateBackendMetaInfo(@Nonnull String name, @Nonnull TypeSerializer<T> elementSerializer)
-
RegisteredPriorityQueueStateBackendMetaInfo
public RegisteredPriorityQueueStateBackendMetaInfo(StateMetaInfoSnapshot snapshot)
-
-
Method Detail
-
snapshot
@Nonnull public StateMetaInfoSnapshot snapshot()
- Specified by:
snapshot
in classRegisteredStateMetaInfoBase
-
withSerializerUpgradesAllowed
@Nonnull public RegisteredPriorityQueueStateBackendMetaInfo<T> 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
-
getElementSerializer
@Nonnull public TypeSerializer<T> getElementSerializer()
-
updateElementSerializer
@Nonnull public TypeSerializerSchemaCompatibility<T> updateElementSerializer(TypeSerializer<T> newElementSerializer)
-
getPreviousElementSerializer
@Nullable public TypeSerializer<T> getPreviousElementSerializer()
-
deepCopy
public RegisteredPriorityQueueStateBackendMetaInfo deepCopy()
-
-