boolean overlap(final Window other) throws IllegalArgumentException
SessionWindow
SessionWindow
is created when:
-
KStreamSessionWindowAggregate
is requested to mergeSessionWindow -
KStreamSessionWindowAggregateProcessor
is requested to process a single record -
SessionKeySchema
is requested toupperRangeFixedSize
andlowerRangeFixedSize
Checking If Two Windows Overlap — overlap
Method
Note
|
overlap is part of Window Contract to check whether a window overlaps with another.
|
overlap
compares the start and end timestampes and is positive (true
) when end timestamp of either window is exactly or greater than the start timestamp of the other window.
overlap
throws a IllegalArgumentException
when the other
window is not a SessionWindow
.
Cannot compare windows of different type. Other window has type [className].