Package org.apache.kafka.streams.state
Interface KeyValueIterator<K,V>
- Type Parameters:
K
- Type of keysV
- Type of values
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterator<KeyValue<K,V>>
- All Known Subinterfaces:
WindowStoreIterator<V>
public interface KeyValueIterator<K,V> extends Iterator<KeyValue<K,V>>, Closeable
-
Method Summary
Modifier and Type Method Description void
close()
K
peekNextKey()
Peek at the next key without advancing the iteratorMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
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
-