K
- Type of the key by which state is keyed.@Internal public final class MultiStateKeyIterator<K> extends Object implements CloseableIterator<K>
To read unique keys across all partitioned states callers must invoke remove()
.
CloseableIterator.IteratorAdapter<E>
EMPTY_INSTANCE
Constructor and Description |
---|
MultiStateKeyIterator(List<? extends StateDescriptor<?,?>> descriptors,
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, wait
adapterForIterator, adapterForIterator, empty, flatten, fromList, ofElement, ofElements
forEachRemaining
public MultiStateKeyIterator(List<? extends StateDescriptor<?,?>> descriptors, KeyedStateBackend<K> backend)
public void remove()
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.