In Apama queries and in EPL stream queries, you can specify aggregate functions in the select clause. An aggregate function calculates a single value across all items currently in the window. EPL provides a number of commonly used aggregate functions. If a supplied aggregate function does not meet your needs, you can define a custom aggregate function.
See
Select clause for information about the
select clause in Apama queries.