The window sets – dependent on the used parameters – the validity of the tuple. If a time based window is used, the default time granularity is in milliseconds. So, if you have another time granularity, you may use the unit-parameter (e.g. use 5 for size and SECONDS for the unit parameter) or you have to adjust the arity (e.g. use 5000 for size without the unit parameter)
Parameter
size:
The size of the windowadvance:
The advance the window moves forwardslide:
The slide of the window. When using this parameter all elements in the windows will have the same starttimestamp (e.g. helful for aggregations), while advance will not change the starttimestamp.type:
The type of the window. The possible values are Time, Tuple, Predicate, and Unboundpartition:
The partition attribute of the windowstart:
The start condition for a predicate window. If the condition evaluates to true, the windows is opened until the end predicate evaluates to true (or if not given the start predicate evaluates to false). Note, that all elements that are not inside a window are send to ouput port 1end:
The end condition for a predicate windowsameStartTime
: For predicate windows: If set to true, all produced elements get the same start timestampunit
: The unit for the time granularity - Possible values are one of TimeUnit like SECONDS, NANOSECODS etc. - default time
Example
...
theme | Eclipse |
---|---|
language | javascript |
title | Window Operator |
linenumbers | true |
...
WINDOW should no longer be used. Use instead:
For special cases the Timestamp operator can be used.