Class WindowedKeyValueIterator<K, V, TJVMK, TJVMV>
KNet implementation of KeyValueIterator<K, V> where K is Windowed<K>
public sealed class WindowedKeyValueIterator<K, V, TJVMK, TJVMV> : CommonIterator<WindowedKeyValue<K, V, TJVMK, TJVMV>>, IGenericSerDesFactoryApplier, IEnumerable<WindowedKeyValue<K, V, TJVMK, TJVMV>>, IEnumerable, IAsyncEnumerable<WindowedKeyValue<K, V, TJVMK, TJVMV>>
Type Parameters
K
The key type
V
The value type
TJVMK
The JVM type of
K
TJVMV
The JVM type of
V
- Inheritance
-
CommonIterator<WindowedKeyValue<K, V, TJVMK, TJVMV>>WindowedKeyValueIterator<K, V, TJVMK, TJVMV>
- Implements
-
IEnumerable<WindowedKeyValue<K, V, TJVMK, TJVMV>>IAsyncEnumerable<WindowedKeyValue<K, V, TJVMK, TJVMV>>
- Inherited Members
Methods
Close()
KNet implementation of https://www.javadoc.io/doc/org.apache.kafka/kafka-streams/3.7.1/org/apache/kafka/streams/state/KeyValueIterator.html#close--
public void Close()
GetEnumerator(bool, bool, CancellationToken)
Internally gets the IEnumerable<T> or IAsyncEnumerable<T>
protected override sealed object GetEnumerator(bool isAsync, bool usePrefetch, CancellationToken cancellationToken = default)
Parameters
isAsync
booltrue if requesting an IAsyncEnumerator<T>
usePrefetch
booltrue if requesting prefetch behavior
cancellationToken
CancellationTokenThe CancellationToken to be used in IAsyncEnumerator<T>
Returns
HasNext()
KNet implementation of https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Iterator.html#hasNext()
public bool HasNext()
Returns
Next()
KNet implementation of https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Iterator.html#next()
public WindowedKeyValue<K, V, TJVMK, TJVMV> Next()
Returns
- WindowedKeyValue<K, V, TJVMK, TJVMV>
PeekNextKey()
KNet implementation of https://www.javadoc.io/doc/org.apache.kafka/kafka-streams/3.7.1/org/apache/kafka/streams/state/KeyValueIterator.html#peekNextKey--
public Windowed<K, TJVMK> PeekNextKey()
Returns
- Windowed<K, TJVMK>
K
Remove()
public void Remove()