N
- Type of namespaceS
- Type of state valuepublic class RegisteredKeyedBackendStateMetaInfo<N,S> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegisteredKeyedBackendStateMetaInfo.Snapshot<N,S>
A consistent snapshot of a
RegisteredKeyedBackendStateMetaInfo . |
Constructor and Description |
---|
RegisteredKeyedBackendStateMetaInfo(org.apache.flink.api.common.state.StateDescriptor.Type stateType,
String name,
org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName() |
org.apache.flink.api.common.typeutils.TypeSerializer<N> |
getNamespaceSerializer() |
org.apache.flink.api.common.typeutils.TypeSerializer<S> |
getStateSerializer() |
org.apache.flink.api.common.state.StateDescriptor.Type |
getStateType() |
int |
hashCode() |
static <N,S> RegisteredKeyedBackendStateMetaInfo<N,S> |
resolveKvStateCompatibility(RegisteredKeyedBackendStateMetaInfo.Snapshot<N,S> restoredStateMetaInfoSnapshot,
org.apache.flink.api.common.typeutils.TypeSerializer<N> newNamespaceSerializer,
org.apache.flink.api.common.state.StateDescriptor<?,S> newStateDescriptor)
Checks compatibility of a restored k/v state, with the new
StateDescriptor provided to it. |
RegisteredKeyedBackendStateMetaInfo.Snapshot<N,S> |
snapshot() |
String |
toString() |
public RegisteredKeyedBackendStateMetaInfo(org.apache.flink.api.common.state.StateDescriptor.Type stateType, String name, org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer, org.apache.flink.api.common.typeutils.TypeSerializer<S> stateSerializer)
public org.apache.flink.api.common.state.StateDescriptor.Type getStateType()
public String getName()
public org.apache.flink.api.common.typeutils.TypeSerializer<N> getNamespaceSerializer()
public org.apache.flink.api.common.typeutils.TypeSerializer<S> getStateSerializer()
public RegisteredKeyedBackendStateMetaInfo.Snapshot<N,S> snapshot()
public static <N,S> RegisteredKeyedBackendStateMetaInfo<N,S> resolveKvStateCompatibility(RegisteredKeyedBackendStateMetaInfo.Snapshot<N,S> restoredStateMetaInfoSnapshot, org.apache.flink.api.common.typeutils.TypeSerializer<N> newNamespaceSerializer, org.apache.flink.api.common.state.StateDescriptor<?,S> newStateDescriptor) throws org.apache.flink.util.StateMigrationException
StateDescriptor
provided to it.
This checks that the descriptor specifies identical names and state types, as well as
serializers that are compatible for the restored k/v state bytes.org.apache.flink.util.StateMigrationException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.