Package org.apache.kafka.streams.state
Interface KeyValueIterator<K,V>
-
- Type Parameters:
K- Type of keysV- Type of values
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,java.util.Iterator<KeyValue<K,V>>
- All Known Subinterfaces:
PeekingKeyValueIterator<K,V>,WindowStoreIterator<V>
- All Known Implementing Classes:
DelegatingPeekingKeyValueIterator,KeyValueIteratorFacade
public interface KeyValueIterator<K,V> extends java.util.Iterator<KeyValue<K,V>>, java.io.Closeable
Iterator interface ofKeyValue.Users must call its
closemethod explicitly upon completeness to release resources, or use try-with-resources statement (available since JDK7) for thisCloseableclass. Note thatremove()is not supported.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()KpeekNextKey()Peek at the next key without advancing the iterator
-
-
-
Method Detail
-
close
void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
peekNextKey
K peekNextKey()
Peek at the next key without advancing the iterator- Returns:
- the key of the next value that would be returned from the next call to next
-
-