In the Edit Dimension dialog, from the Type dropdown list, select Tuple to specify a tuple-based dimension to open a dialog that looks similar to the following example.
With a tuple-based dimension, a new window is opened and evaluated based on a specified number of arriving tuples. That is, a tuple containing the results of this operator's aggregation is emitted and the current window is closed when it contains a specified number of tuples. You can specify the number of tuples as a number or a constant parameter.
The following describes the options available in the Edit Dimension dialog for tuple-based dimensions.
Category | Options and Meaning |
---|---|
Opening policy |
Select one of these options:
|
Window size |
Select one of these options:
|
Emission policy |
Select one of these options:
|
Optional windows |
Open partial windows before first tuple—When this
checkbox is cleared (the default setting), then the first tuple whose field
values pass evaluation by this operator's aggregate expressions — the first
passing tuple — is placed into a window that only
closes or emits for this dimension when the window contains the full number of
tuples expressed in the emit or close configuration for this dimension. The
window may emit or close if the emit or close criteria of other dimensions are
satisfied.
If this checkbox is checked, and this dimension's Open per advance value is less than its Window size value, then the first passing tuple is placed into all the windows in which it would have been placed if there had been previous events to open them. For example, if the Window size is 3 and the Advance is 1, then the first passing tuple is placed into three windows, one closing after the first tuple with just this first tuple in it, one closing after the second tuple with two tuples in it, and the third window closing after the third tuple with three tuples in it. If Group By fields is specified in the Group Options tab and this checkbox is checked, then partial windows are opened for each unique combination of values of all the Group By fields. |