N
- Type of namespaceS
- Type of state valuepublic class RegisteredKeyValueStateBackendMetaInfo<N,S> extends RegisteredStateMetaInfoBase
name
Constructor and Description |
---|
RegisteredKeyValueStateBackendMetaInfo(StateDescriptor.Type stateType,
String name,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<S> stateSerializer) |
RegisteredKeyValueStateBackendMetaInfo(StateDescriptor.Type stateType,
String name,
TypeSerializer<N> namespaceSerializer,
TypeSerializer<S> stateSerializer,
StateSnapshotTransformer<S> snapshotTransformer) |
RegisteredKeyValueStateBackendMetaInfo(StateMetaInfoSnapshot snapshot) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
TypeSerializer<N> |
getNamespaceSerializer() |
StateSnapshotTransformer<S> |
getSnapshotTransformer() |
TypeSerializer<S> |
getStateSerializer() |
StateDescriptor.Type |
getStateType() |
int |
hashCode() |
static <N,S> RegisteredKeyValueStateBackendMetaInfo<N,S> |
resolveKvStateCompatibility(StateMetaInfoSnapshot restoredStateMetaInfoSnapshot,
TypeSerializer<N> newNamespaceSerializer,
StateDescriptor<?,S> newStateDescriptor,
StateSnapshotTransformer<S> snapshotTransformer)
Checks compatibility of a restored k/v state, with the new
StateDescriptor provided to it. |
StateMetaInfoSnapshot |
snapshot() |
String |
toString() |
fromMetaInfoSnapshot, getName
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull StateDescriptor.Type stateType, @Nonnull String name, @Nonnull TypeSerializer<N> namespaceSerializer, @Nonnull TypeSerializer<S> stateSerializer)
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull StateDescriptor.Type stateType, @Nonnull String name, @Nonnull TypeSerializer<N> namespaceSerializer, @Nonnull TypeSerializer<S> stateSerializer, @Nullable StateSnapshotTransformer<S> snapshotTransformer)
public RegisteredKeyValueStateBackendMetaInfo(@Nonnull StateMetaInfoSnapshot snapshot)
@Nonnull public StateDescriptor.Type getStateType()
@Nonnull public TypeSerializer<N> getNamespaceSerializer()
@Nonnull public TypeSerializer<S> getStateSerializer()
@Nullable public StateSnapshotTransformer<S> getSnapshotTransformer()
@Nonnull public static <N,S> RegisteredKeyValueStateBackendMetaInfo<N,S> resolveKvStateCompatibility(StateMetaInfoSnapshot restoredStateMetaInfoSnapshot, TypeSerializer<N> newNamespaceSerializer, StateDescriptor<?,S> newStateDescriptor, @Nullable StateSnapshotTransformer<S> snapshotTransformer) throws 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.StateMigrationException
@Nonnull public StateMetaInfoSnapshot snapshot()
snapshot
in class RegisteredStateMetaInfoBase
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.