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.| 构造器和说明 |
|---|
ChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue,
org.apache.flink.state.changelog.PriorityQueueStateChangeLogger<T> logger,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
int |
size() |
public ChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue, org.apache.flink.state.changelog.PriorityQueueStateChangeLogger<T> logger, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer)
public Set<T> getSubsetForKeyGroup(int keyGroupId)
getSubsetForKeyGroup 在接口中 org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T>@Nullable public T poll()
poll 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>@Nullable public T peek()
peek 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean add(T toAdd)
add 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean remove(T toRemove)
remove 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public boolean isEmpty()
isEmpty 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public int size()
size 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public void addAll(@Nullable Collection<? extends T> toAdd)
addAll 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>@Nonnull public org.apache.flink.util.CloseableIterator<T> iterator()
iterator 在接口中 org.apache.flink.runtime.state.InternalPriorityQueue<T>public StateChangeApplier getChangeApplier(ChangelogApplierFactory factory)
getChangeApplier 在接口中 ChangelogStateCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.