public class ChangelogMigrationRestoreTarget<K> extends Object implements ChangelogRestoreTarget<K>
ChangelogRestoreTarget supports to migrate to the delegated keyed state backend.| 构造器和说明 |
|---|
ChangelogMigrationRestoreTarget(org.apache.flink.runtime.state.AbstractKeyedStateBackend<K> keyedStateBackend,
ChangelogStateFactory changelogStateFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
<N,S extends org.apache.flink.api.common.state.State,V> |
createKeyedState(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor)
Creates a keyed state which could be retrieved by
#getExistingState(String,
BackendStateType) in the restore procedure. |
<T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>> |
createPqState(String stateName,
org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer)
Creates a
KeyGroupedInternalPriorityQueue which could be retrieved by #getExistingState(String, BackendStateType) in the restore procedure. |
ChangelogState |
getExistingState(String name,
org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot.BackendStateType type)
Returns the existing state created by
ChangelogRestoreTarget.createKeyedState(TypeSerializer,
StateDescriptor) or ChangelogRestoreTarget.createPqState(String, TypeSerializer) in the restore procedure. |
org.apache.flink.runtime.state.KeyGroupRange |
getKeyGroupRange()
Returns the key groups which this restore procedure covers.
|
org.apache.flink.runtime.state.CheckpointableKeyedStateBackend<K> |
getRestoredKeyedStateBackend()
Returns keyed state backend restored finally.
|
public ChangelogMigrationRestoreTarget(org.apache.flink.runtime.state.AbstractKeyedStateBackend<K> keyedStateBackend, ChangelogStateFactory changelogStateFactory)
public org.apache.flink.runtime.state.KeyGroupRange getKeyGroupRange()
ChangelogRestoreTargetgetKeyGroupRange 在接口中 ChangelogRestoreTarget<K>public <N,S extends org.apache.flink.api.common.state.State,V> S createKeyedState(org.apache.flink.api.common.typeutils.TypeSerializer<N> namespaceSerializer,
org.apache.flink.api.common.state.StateDescriptor<S,V> stateDescriptor)
throws Exception
ChangelogRestoreTarget#getExistingState(String,
BackendStateType) in the restore procedure. The interface comes from KeyedStateBackend.getOrCreateKeyedState(TypeSerializer, StateDescriptor).createKeyedState 在接口中 ChangelogRestoreTarget<K>Exception@Nonnull public <T extends org.apache.flink.runtime.state.heap.HeapPriorityQueueElement & org.apache.flink.runtime.state.PriorityComparable<? super T> & org.apache.flink.runtime.state.Keyed<?>> org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> createPqState(@Nonnull String stateName, @Nonnull org.apache.flink.api.common.typeutils.TypeSerializer<T> byteOrderedElementSerializer)
ChangelogRestoreTargetKeyGroupedInternalPriorityQueue which could be retrieved by #getExistingState(String, BackendStateType) in the restore procedure. The interface comes
from PriorityQueueSetFactory.create(String, TypeSerializer).createPqState 在接口中 ChangelogRestoreTarget<K>public ChangelogState getExistingState(String name, org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot.BackendStateType type)
ChangelogRestoreTargetChangelogRestoreTarget.createKeyedState(TypeSerializer,
StateDescriptor) or ChangelogRestoreTarget.createPqState(String, TypeSerializer) in the restore procedure.getExistingState 在接口中 ChangelogRestoreTarget<K>public org.apache.flink.runtime.state.CheckpointableKeyedStateBackend<K> getRestoredKeyedStateBackend()
ChangelogRestoreTargetgetRestoredKeyedStateBackend 在接口中 ChangelogRestoreTarget<K>Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.