...
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
Window queries include a window to select a subset of events to be processed based on a specific criterion. For more information, see Siddhi Query Guide - (Defined) Window . | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the window query (shown below) to open the Query Configuration form.
| |||||||
Example | The details entered in the above Query Configuration form creates a query definition with a window as follows:
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description | A join query derives a combined result from two streams in real-time based on a specified condition. For more information, see Siddhi Query Guide - Join. | |||||
Form | Once you connect two Siddhi components to the join query as sources and another Siddhi component as the target, move the cursor over the join query and click the settings icon on the projection query (shown below) to open the Join Query Configuration form.
The following information needs to be entered in this form: Configurations common for both sources
The stream handlers need to be separateley configured for the left source and the right source of the join. Configurations for each source The following configurationsare entered under Left Source and Right Source.
| |||||
Example | A join query is configured as follows:
The above configurations result in creating the following join query. The details entered in the above form creates a query definition with a join as follows:
| |||||
Source |
| |||||
Target |
|
Pattern Query
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
A pattern query detects patterns in events that arrive overtime. For more information, see Siddhi Query Guide - Patterns. | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the pattern query component (shown below) to open the Pattern Query Configuration form. The following information is configured in the Pattern Query Configuration form:
| |||||||
Example | The above configuration results details entered in creating the following query.above form creates a query definition with a pattern as follows:
| |||||||
Source |
| |||||||
Target |
|
Sequence Query
Icon | ||||||||
---|---|---|---|---|---|---|---|---|
Description |
A sequence query detects sequences in event occurrences over time. For more information, see Siddhi Query Guide - Sequence. | |||||||
Form | Once you connect the query to an input stream (source) and an output stream (target), move the cursor over the query and click the settings icon on the sequence query component (shown below) to open the Sequence Query Configuration form. The following information is configured in the Sequence Query Configuration form:
| |||||||
Example | The above configuration results details entered in creating the following query.above form creates a query definition with a sequence as follows:
| |||||||
Source |
| |||||||
Target |
|
...
Icon | ||||||
---|---|---|---|---|---|---|
Description |
Partitions divide streams and queries into isolated groups in order to process them in parallel and in isolation. For more information, see Siddhi Query Guide - Partition. | |||||
Form | Once the stream to be partitioned is connected as a source to the partition, move the cursor over the partition and click the settings icon to open the Partition form. In this form, you can enter expressions to convert the attributes of the stream selected to be partitioned, to create output events. | |||||
Example | The above configuration creates the following partition query.
| |||||
Source | Streams | |||||
Target | N/A |
...