Window Policies

A description of windows in Sybase CEP and their policies.

The window definition states the policy that determines what rows in a stream should be retained and for how long. CCL windows come in several varieties:


Both count-based and time-based windows may be sliding or jumping (and multi-policy windows may be both).


Count-based windows may also be grouped. These windows may be thought of as implementing a separate count-based policy for every combination of unique values in one or more key columns. For example, instead of simply retaining the last five rows to arrive in the stream, a grouped window analyzing stock trades might retain the last five rows for each stock symbol.

Both count-based and time-based windows may be ordered. Ordered windows order the rows retained by the window based on the values of one or more columns.

Important:

As further described in Windows and Row Propagation, window policies retain row state, but do not affect how quickly rows are propagated to other data streams or windows.


Created March 8, 2010. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com