public class ChangelogKeyGroupedPriorityQueue<T> extends Object implements org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>, ChangelogState
KeyGroupedInternalPriorityQueue that keeps state on the underlying delegated KeyGroupedInternalPriorityQueue as well as on the state change log.| Constructor and Description |
|---|
ChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue,
org.apache.flink.state.changelog.StateChangeLogger<T,Void> logger,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T toAdd) |
void |
addAll(Collection<? extends T> toAdd) |
StateChangeApplier |
getChangeApplier(ChangelogApplierFactory factory) |
Set<T> |
getSubsetForKeyGroup(int keyGroupId) |
boolean |
isEmpty() |
org.apache.flink.util.CloseableIterator<T> |
iterator() |
T |
peek() |
T |
poll() |
boolean |
remove(T toRemove) |
void |
resetWritingMetaFlag()
Enable logging meta data before next writes.
|
int |
size() |
public Set<T> getSubsetForKeyGroup(int keyGroupId)
getSubsetForKeyGroup in interface org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>@Nullable public T poll()
poll in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>@Nullable public T peek()
peek in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean add(T toAdd)
add in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean remove(T toRemove)
remove in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean isEmpty()
isEmpty in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public int size()
size in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public void addAll(@Nullable Collection<? extends T> toAdd)
addAll in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>@Nonnull public org.apache.flink.util.CloseableIterator<T> iterator()
iterator in interface org.apache.flink.runtime.state.InternalPriorityQueue<T>public StateChangeApplier getChangeApplier(ChangelogApplierFactory factory)
getChangeApplier in interface ChangelogStatepublic void resetWritingMetaFlag()
ChangelogStateresetWritingMetaFlag in interface ChangelogStateCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.