boolean overlap(final Window other) throws IllegalArgumentException
SessionWindow
SessionWindow is created when:
-
KStreamSessionWindowAggregateis requested to mergeSessionWindow -
KStreamSessionWindowAggregateProcessoris requested to process a single record -
SessionKeySchemais requested toupperRangeFixedSizeandlowerRangeFixedSize
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].