K
- Type of the key by which state is keyed.@Internal public final class MultiStateKeyIterator<K> extends Object implements Iterator<K>
To read unique keys across all partitioned states callers must invoke remove()
.
Constructor and Description |
---|
MultiStateKeyIterator(List<? extends StateDescriptor<?,?>> descriptors,
KeyedStateBackend<K> backend) |
Modifier and Type | Method and Description |
---|---|
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, wait
forEachRemaining
public MultiStateKeyIterator(List<? extends StateDescriptor<?,?>> descriptors, KeyedStateBackend<K> backend)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.