Class UnlimitedWindow
- java.lang.Object
-
- org.apache.kafka.streams.kstream.Window
-
- org.apache.kafka.streams.kstream.internals.UnlimitedWindow
-
public class UnlimitedWindow extends Window
UnlimitedWindow
is an "infinite" large window with a fixed (inclusive) start time. All windows of the samewindow specification
will have the same start time. To make the window size "infinite" end time is set toLong.MAX_VALUE
.For time semantics, see
TimestampExtractor
.- See Also:
TimeWindow
,SessionWindow
,UnlimitedWindows
,TimestampExtractor
-
-
Constructor Summary
Constructors Constructor Description UnlimitedWindow(long startMs)
Create a new window for the given start time (inclusive).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
overlap(Window other)
Returnstrue
if the given window is of the same type, because all unlimited windows overlap with each other due to their infinite size.
-
-
-
Constructor Detail
-
UnlimitedWindow
public UnlimitedWindow(long startMs)
Create a new window for the given start time (inclusive).- Parameters:
startMs
- the start timestamp of the window (inclusive)- Throws:
IllegalArgumentException
- ifstart
is negative
-
-
Method Detail
-
overlap
public boolean overlap(Window other)
Returnstrue
if the given window is of the same type, because all unlimited windows overlap with each other due to their infinite size.- Specified by:
overlap
in classWindow
- Parameters:
other
- another window- Returns:
true
- Throws:
IllegalArgumentException
- if theother
window has a different type thanthis
window
-
-