...
- method (String): The method that should be used for selection
- FIRST: The first element in the window
- LAST: The last element in the window
- MIN: The element with a minimal value
- MAX: The element with a maximal value
- attribute (SDFAttribute): For some methods this states the attribute for which the element should be selected.
Remark: The input must contain end time stamps, else no output will ever be produced!
Example
Code Block | ||
---|---|---|
| ||
#PARSER PQL #ADDQUERY outwindow = TUPLEAGGREGATEELEMENTWINDOW({ method size = 'MAX'5, attribute advance = 'id' 5 }, ELEMENTWINDOW({ person size = 5,) out = TUPLEAGGREGATE({ slidemethod = 5'MAX', attribute }= 'id', personname = 'MAX' }, )window ) out2 = TUPLEAGGREGATE({ method = 'MIN', attribute = 'id' }, ELEMENTWINDOW({ name size = 5'MIN', slide = 5 }, personwindow ) ) out3 = TUPLEAGGREGATE({ method = 'FIRST', }, name ELEMENTWINDOW({= 'FIRST', size = 5, slide = 5 }, personwindow ) ) out4 = TUPLEAGGREGATE({ method = 'LAST', }, name ELEMENTWINDOW({ = 'LAST' size = 5, slide = 5 }, personwindow ) ) |