Class KeyValueIteratorFacade<K,V>
- java.lang.Object
-
- org.apache.kafka.streams.state.internals.KeyValueIteratorFacade<K,V>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<KeyValue<K,V>>,KeyValueIterator<K,V>
public class KeyValueIteratorFacade<K,V> extends java.lang.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 voidclose()booleanhasNext()KeyValue<K,V>next()KpeekNextKey()Peek at the next key without advancing the iterator
-
-
-
Constructor Detail
-
KeyValueIteratorFacade
public KeyValueIteratorFacade(KeyValueIterator<K,ValueAndTimestamp<V>> iterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<K>
-
peekNextKey
public K peekNextKey()
Description copied from interface:KeyValueIteratorPeek at the next key without advancing the iterator- Specified by:
peekNextKeyin 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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceKeyValueIterator<K,V>
-
-