K - Type of the key by which state is keyed.@Internal public final class MultiStateKeyIterator<K> extends Object implements org.apache.flink.util.CloseableIterator<K>
To read unique keys across all partitioned states callers must invoke remove().
| Constructor and Description |
|---|
MultiStateKeyIterator(List<? extends org.apache.flink.api.common.state.StateDescriptor<?,?>> descriptors,
org.apache.flink.runtime.state.KeyedStateBackend<K> backend) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
K |
next() |
void |
remove()
Removes the current key from ALL known states in the state backend.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElementsforEachRemainingpublic void remove()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.