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,
StateChangeLogger<T,Void> logger,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(T toAdd) |
void |
addAll(Collection<? extends T> toAdd) |
StateChangeApplier |
getChangeApplier(ChangelogApplierFactory factory) |
StateChangeLogger<T,Void> |
getStateChangeLogger() |
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.
|
<IS> void |
setDelegatedState(IS state) |
int |
size() |
public ChangelogKeyGroupedPriorityQueue(org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<T> delegatedPriorityQueue, StateChangeLogger<T,Void> 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 在接口中 ChangelogStatepublic <IS> void setDelegatedState(IS state)
setDelegatedState 在接口中 ChangelogStatepublic StateChangeLogger<T,Void> getStateChangeLogger()
public void resetWritingMetaFlag()
ChangelogStateresetWritingMetaFlag 在接口中 ChangelogStateCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.