Class KeyValueIteratorFacade<K,V>
- java.lang.Object
-
- org.apache.kafka.streams.state.internals.KeyValueIteratorFacade<K,V>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<KeyValue<K,V>>
,KeyValueIterator<K,V>
public class KeyValueIteratorFacade<K,V> extends Object implements KeyValueIterator<K,V>
-
-
Constructor Summary
Constructors Constructor Description KeyValueIteratorFacade(KeyValueIterator<K,ValueAndTimestamp<V>> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
KeyValue<K,V>
next()
K
peekNextKey()
Peek at the next key without advancing the iterator-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
KeyValueIteratorFacade
public KeyValueIteratorFacade(KeyValueIterator<K,ValueAndTimestamp<V>> iterator)
-
-
Method Detail
-
peekNextKey
public K peekNextKey()
Description copied from interface:KeyValueIterator
Peek at the next key without advancing the iterator- Specified by:
peekNextKey
in interfaceKeyValueIterator<K,V>
- Returns:
- the key of the next value that would be returned from the next call to next
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceKeyValueIterator<K,V>
-
-