Example ESP Query Strings
ESP uses continuous queries only, and the query string must include accept: new in the stream policy clause.
See Stream Clause. For example:
select count(*) as theCount from /InferenceOntology/DirectToQueryEvent {policy: maintain last 10 seconds; accept: new} as dtq\n group by 1; select sum(currentCount) as theSum from /QueryOntology/Level2QueryEvent {policy: maintain last 25 seconds; accept: new} as l2q\n group by 1;
An example project demonstrating ESP queries is provided in the directory BE_HOME/Examples/event_stream_processing/QueryESP.
Copyright © Cloud Software Group, Inc. All rights reserved.