The OUTPUT clause controls the event output speed and suppresses output.
The syntax below performs output each time the specified number of output events have arrived.
Syntax:
output [after suppressionDefinition]
[[all | first | last | snapshot] every number events]
The syntax below performs output each time the specified time elapses.
Syntax:
output [after suppressionDefinition]
[[all | first | last | snapshot] every time]
The syntax below specifies an output schedule similar to crontab.
Syntax:
output [after suppressionDefinition]
[[all | first | last | snapshot] at ( minute, hour, day, month, dayOfWeek[, seconds] )]
Refer to the TIMER:AT explanation under "1.4.11 Time-based Observer" for information on schedule specification (minute, hour, day, month, dayOfWeek, seconds).
The ALL keyword is the default and specifies to output all targeted events. The FIRST keyword specifies to output only the first event. The LAST keyword specifies to output only the last event. The SNAPSHOT keyword specifies to output the calculation results that take into account all events in the specified view.
The syntax below specifies AFTER and the suppressionDefinition.
Syntax:
output after (time | number events ) [...]
From the start of complex event processing statement processing until the specified time has elapsed, or until the specified number of output events arrive, all output events are discarded without being output.