Package org.apache.kafka.streams.kstream
Class Windowed<K>
- java.lang.Object
-
- org.apache.kafka.streams.kstream.Windowed<K>
-
- Type Parameters:
K
- type of the key
public class Windowed<K> extends java.lang.Object
The result key type of a windowed stream aggregation.If a
KStream
gets grouped and aggregated using a window-aggregation the resultingKTable
is a so-called "windowedKTable
" with a combined key type that encodes the corresponding aggregation window and the original record key. Thus, a windowedKTable
has type<Windowed<K>,V>
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
K
key()
Return the key of the window.java.lang.String
toString()
Window
window()
Return the window containing the values associated with this key.
-
-
-
Method Detail
-
key
public K key()
Return the key of the window.- Returns:
- the key of the window
-
window
public Window window()
Return the window containing the values associated with this key.- Returns:
- the window containing the values
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-