@Internal
public interface ChangelogRestoreTarget<K>
| 限定符和类型 | 方法和说明 |
|---|---|
<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
createKeyedState(TypeSerializer,
StateDescriptor) or 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.
|
org.apache.flink.runtime.state.KeyGroupRange getKeyGroupRange()
<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
#getExistingState(String,
BackendStateType) in the restore procedure. The interface comes from KeyedStateBackend.getOrCreateKeyedState(TypeSerializer, StateDescriptor).Exception@Nonnull <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)
KeyGroupedInternalPriorityQueue which could be retrieved by #getExistingState(String, BackendStateType) in the restore procedure. The interface comes
from PriorityQueueSetFactory.create(String, TypeSerializer).ChangelogState getExistingState(String name, org.apache.flink.runtime.state.metainfo.StateMetaInfoSnapshot.BackendStateType type)
createKeyedState(TypeSerializer,
StateDescriptor) or createPqState(String, TypeSerializer) in the restore procedure.org.apache.flink.runtime.state.CheckpointableKeyedStateBackend<K> getRestoredKeyedStateBackend()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.