The guide provides specification of Siddhi Query Language 3.0 with examples
...
Functions parameters can be attributes ( int
, long, float, double, string, bool, object
), results of other functions, results of mathematical or logical expressions or time parameters.
...
Siddhi supports the following inbuilt functions.
- coalesce
- convert
- instanceOfBoolean
- instanceOfDouble
- instanceOfFloat
- instanceOfInteger
- instanceOfLong
- instanceOfString
- UUID
E.g. With convert and UUID function, converting room number to string and introducing message ID to each event.
...
Siddhi supports the following inbuilt windows.
Output Event Categories
Window output can be manipulated based event categories, i.e. current and expired events, use the following keywords with output stream to manipulate the output.
...
Siddhi supports the following inbuilt aggregate functions.
E.g. Notify upon all event arrival and expiry the average temperature of all rooms based on all events arrived during last 10 minutes.
...
Code Block | ||||
---|---|---|---|---|
| ||||
@From(eventtable='rdbms', datasource.name='AnalyticsDataSource', table.name='RoomTable') define table RoomTypeTable (roomNo int, type string); |
Info | ||
---|---|---|
| ||
The |
E.g. Create an event table with name RoomTypeTable having attributes room number as int & type as string, backed by MySQL table named RoomTable from the database cepdb located at localhost:3306 having user name "root" and password "root".
...
Extensions released under Apache License v2 :
- math : Supporting mathematical operations
- str : Supporting String operations
- geo : Supporting geo coordinates
- r : Supporting R executions
- regex : Supporting regular expression operations
...
- Function Extension
- Aggregate Function Extension
- Window Extension
- Stream Function Extension
- Stream Processor Extension
---------------------
Child pages (Children Display) |
---|