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.ObjectThe result key type of a windowed stream aggregation.If a
KStreamgets grouped and aggregated using a window-aggregation the resultingKTableis a so-called "windowedKTable" with a combined key type that encodes the corresponding aggregation window and the original record key. Thus, a windowedKTablehas type<Windowed<K>,V>.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()Kkey()Return the key of the window.java.lang.StringtoString()Windowwindow()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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-