Reason: For its first call, assignNextWindowStart receives Long.MAX_VALUE as t_c and returns Long.MIN_VALUE because of the slide value 4. The variable min_next_edge_ts remains Long.MIN_VALUE and is again set to Long.MAX_VALUE in the next iteration of the loop.
For a sliding window with size = 10 and slide = 4, the StreamSlicer does not get out of the while loop when processing the first tuple.
https://github.com/TU-Berlin-DIMA/scotty-window-processor/blob/2a6b33941ac1733fb7b8db2cece04b2afc61d40f/slicing/src/main/java/de/tub/dima/scotty/slicing/StreamSlicer.java#L65-L69
Reason: For its first call,
assignNextWindowStart
receivesLong.MAX_VALUE
ast_c
and returnsLong.MIN_VALUE
because of the slide value 4. The variablemin_next_edge_ts
remainsLong.MIN_VALUE
and is again set toLong.MAX_VALUE
in the next iteration of the loop.https://github.com/TU-Berlin-DIMA/scotty-window-processor/blob/2a6b33941ac1733fb7b8db2cece04b2afc61d40f/slicing/src/main/java/de/tub/dima/scotty/slicing/StreamSlicer.java#L103-L116