Package org.apache.flink.state.changelog
Class ChangelogKeyGroupedPriorityQueue<T>
java.lang.Object
org.apache.flink.state.changelog.ChangelogKeyGroupedPriorityQueue<T>
- All Implemented Interfaces:
org.apache.flink.runtime.state.InternalPriorityQueue<T>,org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>,ChangelogState
public class ChangelogKeyGroupedPriorityQueue<T>
extends Object
implements org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>, ChangelogState
A
KeyGroupedInternalPriorityQueue that keeps state on the underlying delegated KeyGroupedInternalPriorityQueue as well as on the state change log.-
Constructor Summary
ConstructorsConstructorDescriptionChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue, StateChangeLogger<T, Void> logger, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddAll(Collection<? extends T> toAdd) getChangeApplier(ChangelogApplierFactory factory) getSubsetForKeyGroup(int keyGroupId) booleanisEmpty()org.apache.flink.util.CloseableIterator<T>iterator()peek()poll()booleanvoidEnable logging meta data before next writes.<IS> voidsetDelegatedState(IS state) intsize()
-
Constructor Details
-
ChangelogKeyGroupedPriorityQueue
public ChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue, StateChangeLogger<T, Void> logger, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
-
-
Method Details
-
getSubsetForKeyGroup
- Specified by:
getSubsetForKeyGroupin interfaceorg.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>
-
poll
- Specified by:
pollin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
peek
- Specified by:
peekin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
add
- Specified by:
addin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
remove
- Specified by:
removein interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
size
public int size()- Specified by:
sizein interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
addAll
- Specified by:
addAllin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
iterator
- Specified by:
iteratorin interfaceorg.apache.flink.runtime.state.InternalPriorityQueue<T>
-
getChangeApplier
- Specified by:
getChangeApplierin interfaceChangelogState
-
setDelegatedState
public <IS> void setDelegatedState(IS state) - Specified by:
setDelegatedStatein interfaceChangelogState
-
getStateChangeLogger
-
resetWritingMetaFlag
public void resetWritingMetaFlag()Description copied from interface:ChangelogStateEnable logging meta data before next writes.- Specified by:
resetWritingMetaFlagin interfaceChangelogState
-