@Internal public interface ChangelogRestoreTarget<K>
Modifier and Type | Method and Description |
---|---|
<N,S extends State,V> |
createKeyedState(TypeSerializer<N> namespaceSerializer,
StateDescriptor<S,V> stateDescriptor)
Creates a keyed state which could be retrieved by
#getExistingState(String,
BackendStateType) in the restore procedure. |
<T extends HeapPriorityQueueElement & PriorityComparable<? super T> & Keyed<?>> |
createPqState(String stateName,
TypeSerializer<T> byteOrderedElementSerializer)
Creates a
KeyGroupedInternalPriorityQueue which could be retrieved by #getExistingState(String, BackendStateType) in the restore procedure. |
ChangelogState |
getExistingState(String name,
StateMetaInfoSnapshot.BackendStateType type)
Returns the existing state created by
createKeyedState(TypeSerializer,
StateDescriptor) or createPqState(String, TypeSerializer) in the restore procedure. |
KeyGroupRange |
getKeyGroupRange()
Returns the key groups which this restore procedure covers.
|
CheckpointableKeyedStateBackend<K> |
getRestoredKeyedStateBackend()
Returns keyed state backend restored finally.
|
KeyGroupRange getKeyGroupRange()
<N,S extends State,V> S createKeyedState(TypeSerializer<N> namespaceSerializer, 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 HeapPriorityQueueElement & PriorityComparable<? super T> & Keyed<?>> KeyGroupedInternalPriorityQueue<T> createPqState(@Nonnull String stateName, @Nonnull 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, StateMetaInfoSnapshot.BackendStateType type)
createKeyedState(TypeSerializer,
StateDescriptor)
or createPqState(String, TypeSerializer)
in the restore procedure.CheckpointableKeyedStateBackend<K> getRestoredKeyedStateBackend()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.