Package org.apache.flink.runtime.state
Class RegisteredBroadcastStateBackendMetaInfo<K,V>
- java.lang.Object
-
- org.apache.flink.runtime.state.RegisteredStateMetaInfoBase
-
- org.apache.flink.runtime.state.RegisteredBroadcastStateBackendMetaInfo<K,V>
-
public class RegisteredBroadcastStateBackendMetaInfo<K,V> extends RegisteredStateMetaInfoBase
-
-
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 RegisteredBroadcastStateBackendMetaInfo(String name, OperatorStateHandle.Mode assignmentMode, TypeSerializer<K> keySerializer, TypeSerializer<V> valueSerializer)
RegisteredBroadcastStateBackendMetaInfo(StateMetaInfoSnapshot snapshot)
RegisteredBroadcastStateBackendMetaInfo(RegisteredBroadcastStateBackendMetaInfo<K,V> copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegisteredBroadcastStateBackendMetaInfo<K,V>
deepCopy()
Creates a deep copy of the itself.boolean
equals(Object obj)
OperatorStateHandle.Mode
getAssignmentMode()
TypeSerializer<K>
getKeySerializer()
TypeSerializer<K>
getPreviousKeySerializer()
TypeSerializer<V>
getPreviousValueSerializer()
TypeSerializer<V>
getValueSerializer()
int
hashCode()
StateMetaInfoSnapshot
snapshot()
String
toString()
TypeSerializerSchemaCompatibility<K>
updateKeySerializer(TypeSerializer<K> newKeySerializer)
TypeSerializerSchemaCompatibility<V>
updateValueSerializer(TypeSerializer<V> newValueSerializer)
RegisteredBroadcastStateBackendMetaInfo<K,V>
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
-
RegisteredBroadcastStateBackendMetaInfo
public RegisteredBroadcastStateBackendMetaInfo(@Nonnull String name, @Nonnull OperatorStateHandle.Mode assignmentMode, @Nonnull TypeSerializer<K> keySerializer, @Nonnull TypeSerializer<V> valueSerializer)
-
RegisteredBroadcastStateBackendMetaInfo
public RegisteredBroadcastStateBackendMetaInfo(@Nonnull RegisteredBroadcastStateBackendMetaInfo<K,V> copy)
-
RegisteredBroadcastStateBackendMetaInfo
public RegisteredBroadcastStateBackendMetaInfo(@Nonnull StateMetaInfoSnapshot snapshot)
-
-
Method Detail
-
deepCopy
@Nonnull public RegisteredBroadcastStateBackendMetaInfo<K,V> deepCopy()
Creates a deep copy of the itself.
-
snapshot
@Nonnull public StateMetaInfoSnapshot snapshot()
- Specified by:
snapshot
in classRegisteredStateMetaInfoBase
-
withSerializerUpgradesAllowed
@Nonnull public RegisteredBroadcastStateBackendMetaInfo<K,V> 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
-
getKeySerializer
@Nonnull public TypeSerializer<K> getKeySerializer()
-
updateKeySerializer
@Nonnull public TypeSerializerSchemaCompatibility<K> updateKeySerializer(TypeSerializer<K> newKeySerializer)
-
getPreviousKeySerializer
@Nullable public TypeSerializer<K> getPreviousKeySerializer()
-
getValueSerializer
@Nonnull public TypeSerializer<V> getValueSerializer()
-
updateValueSerializer
@Nonnull public TypeSerializerSchemaCompatibility<V> updateValueSerializer(TypeSerializer<V> newValueSerializer)
-
getPreviousValueSerializer
@Nullable public TypeSerializer<V> getPreviousValueSerializer()
-
getAssignmentMode
@Nonnull public OperatorStateHandle.Mode getAssignmentMode()
-
-