Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • size: The size of the window, i.e. how many elements form a window
  • advance: The advance after how many elements the window moves forward. Default advance is 1, i.e. with every new element
  • slide: The slide of the window. When using this parameter all elements in the windows will have the same starttimestamp (e.g. helful helpful for aggregations), while advance will not change the starttimestamp.
  • partition: The partition attribute of the window. When using this parameter, the window garantees to be opened until size element for this group are read.

...

Example

Code Block
languagepql
/// a 5 element big window (creating a sliding window)
output = ELEMENTWINDOW({size = 5}, input)
 
/// a 5 element big window that moves every 5 element (creating windows with disjunct content) partitioned over the bidder
output = ELEMENTWINDOW({
                  size = 5, 
                  advance = 5, 
                  partition=['bidder']
                 }, input)