...)
```
QUERY PARAMETERS
@@ -511,12 +532,12 @@ insert into barStream;
Dynamic |
- args |
+ arg |
This function accepts one or more parameters. They can belong to any one of the available types. All the specified parameters should be of the same type. |
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -569,7 +590,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL |
No |
- No |
+ Yes |
converted.to |
@@ -577,7 +598,7 @@ insert into barStream;
|
STRING |
No |
- No |
+ Yes |
@@ -622,7 +643,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL |
No |
- No |
+ Yes |
@@ -676,7 +697,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
default |
@@ -684,7 +705,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -738,7 +759,7 @@ insert into barStream;
|
BOOL |
No |
- No |
+ Yes |
if.expression |
@@ -746,7 +767,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
else.expression |
@@ -754,7 +775,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -810,7 +831,7 @@ insert into outputStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -855,7 +876,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -900,7 +921,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -945,7 +966,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -990,7 +1011,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -1035,7 +1056,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT STRING BOOL OBJECT |
No |
- No |
+ Yes |
@@ -1061,7 +1082,7 @@ insert into barStream;
Returns the maximum value of the input parameters.
Syntax
```
- maximum( arg)
+ maximum( arg, ...)
```
QUERY PARAMETERS
@@ -1080,7 +1101,7 @@ insert into barStream;
|
INT LONG DOUBLE FLOAT |
No |
- No |
+ Yes |
@@ -1098,7 +1119,7 @@ insert into outputStream;
Returns the minimum value of the input parameters.
Syntax
```
- minimum( arg)
+ minimum( arg, ...)
```
QUERY PARAMETERS
@@ -1117,7 +1138,7 @@ insert into outputStream;
|
INT LONG DOUBLE FLOAT |
No |
- No |
+ Yes |
@@ -1154,7 +1175,7 @@ insert into outputStream;
|
OBJECT |
No |
- No |
+ Yes |
@@ -1201,7 +1222,7 @@ pol2Cart( theta, rho, z)
|
DOUBLE |
No |
- No |
+ Yes |
rho |
@@ -1209,7 +1230,7 @@ pol2Cart( theta, rho, z)
|
DOUBLE |
No |
- No |
+ Yes |
z |
@@ -1217,7 +1238,7 @@ pol2Cart( theta, rho, z)
If z value is not given, drop the third parameter of the output. |
DOUBLE |
Yes |
- No |
+ Yes |
@@ -1275,7 +1296,7 @@ log( priority, log.message, is.event.logged)
: |
STRING |
Yes |
- No |
+ Yes |
is.event.logged |
@@ -1341,6 +1362,7 @@ insert into barStream;
A window that holds an incoming events batch. When a new set of events arrives, the previously arrived old events will be expired. Batch window can be used to aggregate events that comes in batches. If it has the parameter length specified, then batch window process the batch as several chunks.
Syntax
```
+batch()
batch( window.length)
```
@@ -1505,7 +1527,7 @@ externalTime( timestamp, window.time)
|
LONG |
No |
- No |
+ Yes |
window.time |
@@ -1541,6 +1563,7 @@ insert expired events into outputStream ;
externalTimeBatch( timestamp, window.time)
externalTimeBatch( timestamp, window.time, start.time)
externalTimeBatch( timestamp, window.time, start.time, timeout)
+externalTimeBatch( timestamp, window.time, start.time, timeout, replace.with.batchtime)
```
QUERY PARAMETERS
@@ -1559,7 +1582,7 @@ externalTimeBatch( timestamp, window.time,
|
LONG |
No |
- No |
+ Yes |
window.time |
@@ -1575,7 +1598,7 @@ externalTimeBatch( timestamp, window.time,
Timestamp of first event |
INT LONG TIME |
Yes |
- No |
+ Yes |
timeout |
@@ -1585,6 +1608,14 @@ externalTimeBatch( timestamp, window.time,
Yes |
No |
+
+ replace.with.batchtime |
+ This indicates to replace the expired event timeStamp as the batch end timeStamp |
+ System waits till an event from next batch arrives to flush current batch |
+ BOOL |
+ Yes |
+ No |
+
Examples
@@ -1618,6 +1649,7 @@ define window cseEventWindow (symbol string, price float, volume int) externalTi
This window returns the latest events with the most frequently occurred value for a given attribute(s). Frequency calculation for this window processor is based on Misra-Gries counting algorithm.
Syntax
```
+frequent( event.count)
frequent( event.count, attribute)
```
@@ -1645,7 +1677,7 @@ frequent( event.count, attribute)
The concatenation of all the attributes of the event is considered. |
STRING |
Yes |
- No |
+ Yes |
@@ -1830,7 +1862,7 @@ lossyFrequent( support.threshold, error.bound, attribu
The concatenation of all the attributes of the event is considered. |
STRING |
Yes |
- No |
+ Yes |
@@ -1897,7 +1929,7 @@ session( window.session, window.key, win
default-key |
STRING |
Yes |
- No |
+ Yes |
window.allowed.latency |
@@ -1926,8 +1958,9 @@ insert all events into OutputStream;
This window holds a batch of events that equal the number specified as the windowLength and sorts them in the given order.
Syntax
```
-sort( window.length, attribute)
-sort( window.length, attribute, order)
+sort( window.length, attribute)
+sort( window.length, attribute, order, ...)
+sort( window.length, attribute, order, attribute, ...)
```
QUERY PARAMETERS
@@ -1952,9 +1985,9 @@ sort( window.length, attribute, order)
attribute |
The attribute that should be checked for the order. |
The concatenation of all the attributes of the event is considered. |
- STRING |
+ STRING DOUBLE INT LONG FLOAT LONG |
+ Yes |
Yes |
- No |
order |
diff --git a/docs/extensions.md b/docs/extensions.md
new file mode 100644
index 0000000000..4a38a3c6c4
--- /dev/null
+++ b/docs/extensions.md
@@ -0,0 +1,72 @@
+# Siddhi Extensions
+
+## Available Extensions
+
+Following are some pre-written extensions that are supported with Siddhi;
+
+### Extensions released under Apache 2.0 License
+Name | Description
+:-- | :--
+execution-approximate | The siddhi-execution-approximate is an extension to Siddhi that performs approximate computing on event streams.
+execution-env | The siddhi-execution-env extension is an extension to Siddhi that provides the capability to read environment properties inside Siddhi stream definitions and use it inside queries. Functions of the env extension are as follows..
+execution-extrema | The siddhi-execution-extrema extension is an extension to Siddhi that processes event streams based on different arithmetic properties. Different types of processors are available to extract the extremas from the event streams according to the specified attribute in the stream.
+execution-geo | The siddhi-execution-geo extension is an extension to Siddhi that provides geo data related functionality such as checking whether a given geo coordinate is within a predefined geo-fence, etc. Following are the functions of the Geo extension.
+execution-graph | The siddhi-execution-graph extension is an extension to Siddhi that provides graph related functionality to Siddhi such as getting size of largest connected component of a graph, maximum clique size of a graph, etc.
+execution-kalmanfilter | The siddhi-execution-kalman-filter extension is an extension to Siddhi provides that Kalman filtering capabilities to Siddhi. This allows you to detect outliers of input data.
+execution-map | The siddhi-execution-map extension is an extension to Siddhi that provides the capability to send a map object inside Siddhi stream definitions and use it inside queries. The following are the functions of the map extension..
+execution-markov | The siddhi-execution-markov extension is an extension to Siddhi that allows abnormal patterns relating to user activity to be detected when carrying out real time analysis.
+execution-math | The siddhi-execution-math is an extension to Siddhi, which provides useful mathematical functions that can make your siddhi queries more flexible.
+execution-priority | The siddhi-execution-priority extension is an extension to Siddhi that keeps track of the priority of events in a stream.
+execution-regex | The siddhi-execution-regex extension is an extension to Siddhi that provides basic RegEx execution capabilities.
+execution-reorder | The siddhi-execution-reorder extension is an extension to Siddhi that is used for reordering events from an unordered event stream. Reorder extension is implemented using the K-Slack and alpha K-Stack algorithms.
+execution-sentiment | The siddhi-execution-sentiment extension is an extension to Siddhi that performs sentiment analysis using Afinn Wordlist-based approach.
+execution-stats | The siddhi-execution-stats extension is an extension to Siddhi that provides statistical functions for aggregated events. Currently this contains median function which calculate the median of aggregated events. Calculation of median is done for each event arrival and expiry, it is not recommended to use this extension for large window sizes.
+execution-streamingml | The siddhi-execution-streamingml is an extension to Siddhi that performs streaming machine learning on event streams.
+execution-string | The siddhi-execution-string is an extension to Siddhi that provides basic string handling capabilities such as con-cat, length, convert to lowercase, and replace all.
+execution-tensorflow | The siddhi-execution-tensorflow is an extension to Siddhi that adds support for inferences from pre-built TensorFlow SavedModels using Siddhi.
+execution-time | The siddhi-execution-time extension is an extension to Siddhi that provides time related functionality to Siddhi such as getting current time, current date, manipulating/formatting dates and etc.
+execution-timeseries | The siddhi-execution-timeseries extension is an extension to Siddhi which enables users to forecast and detect outliers in time series data, using Linear Regression Models.
+execution-unique | The siddhi-execution-unique extension is an extension to Siddhi that processes event streams based on unique events. Different types of unique windows are available to hold unique events based on the given unique key parameter.
+execution-unitconversion | The siddhi-execution-unitconversion extension is an extension to Siddhi that enables conversions of length, mass, time and volume units.
+io-cdc | The siddhi-io-cdc extension is an extension to Siddhi. It receives change data from MySQL, MS SQL Server, Postgresql, H2 and Oracle in the key-value format.
+io-email | The siddhi-io-email extension is an extension to Siddhi that receives and publishes events via email. Using the extension, events can be published through smtp mail server and received through 'pop3' or 'imap' mail serves.
+io-file | The siddhi-io-file extension is an extension to Siddhi which is used to receive/publish event data from/to file. It supports both binary and text formats.
+io-http | The siddhi-io-http extension is an extension to Siddhi that allows you to receive and publish events via http and https transports and also allow you perform synchronous request and response. This extension works with WSO2 Stream Processor and with standalone Siddhi.
+io-jms | The siddhi-io-jms extension is an extension to Siddhi that used to receive and publishe events via JMS Message. This extension allows users to subscribe to a JMS broker and receive/publish JMS messages.
+io-kafka | The siddhi-io-kafka extension is an extension to Siddhi. This implements siddhi kafka source and sink that can be used to receive events from a kafka cluster and to publish events to a kafka cluster.
+io-mqtt | The siddhi-io-mqtt is an extension to Siddhi mqtt source and sink implementation,that publish and receive events from mqtt broker.
+io-prometheus | The siddhi-io-prometheus extension is an extension to Siddhi. The Prometheus-sink publishes Siddhi events as Prometheus metrics and expose them to Prometheus server. The Prometheus-source retrieves Prometheus metrics from an endpoint and send them as Siddhi events.
+io-rabbitmq | The siddhi-io-rabbitmq is an extension to Siddhi that publish and receive events from rabbitmq broker.
+io-sqs | The siddhi-io-sqs extension is an extension to Siddhi that used to receive and publish events via AWS SQS Service. This extension allows users to subscribe to a SQS queue and receive/publish SQS messages.
+io-tcp | The siddhi-io-tcp extension is an extension to Siddhi that allows to receive and publish events through TCP.
+io-twitter | The siddhi-io-twitter extension is an extension to Siddhi. It publishes event data from Twitter Applications in the key-value map format.
+io-websocket | The siddhi-io-websocket extension is an extension to Siddhi that allows to receive and publish events through WebSocket.
+io-wso2event | The siddhi-io-wso2event extension is an extension to Siddhi that receives and publishes events in the WSO2Event format via Thrift or Binary protocols.
+map-binary | The siddhi-map-binary extension is an extension to Siddhi that can be used to convert binary events to/from Siddhi events.
+map-csv | The siddhi-map-csv extension is an extension to Siddhi that supports mapping incoming events with csv format to a stream at the source, and mapping a stream to csv format events at the sink.
+map-json | The siddhi-map-json extension is an extension to Siddhi which is used to convert JSON message to/from Siddhi events.
+map-keyvalue | The siddhi-map-keyvalue extension is an extension to Siddhi that supports mapping incoming events with Key-Value map format to a stream at the source, and mapping a stream to Key-Value map events at the sink.
+map-text | The siddhi-map-text extension is an extension to Siddhi that supports mapping incoming text messages to a stream at the source, and mapping a stream to text messages at the sink.
+map-wso2event | The siddhi-map-wso2event extension is an extension to Siddhi that can be used to convert WSO2 events to/from Siddhi events.
+map-xml | The siddhi-map-xml extension is an extension to Siddhi that supports mapping incoming XML events to a stream at the source, and mapping a stream to XML events at the sink.
+script-js | The siddhi-script-js is an extension to Siddhi that allows to include JavaScript functions within the Siddhi Query Language.
+store-cassandra | The siddhi-store-cassandra extension is an extension to Siddhi that can be used to persist events to a Cassandra instance of the users choice. Find some useful links below:
+store-hbase | The siddhi-store-hbase extension is an extension to Siddhi that can be used to persist events to a HBase instance of the users choice. Find some useful links below:
+store-mongodb | The siddhi-store-mongodb extension is an extension to Siddhi that can be used to persist events to a MongoDB instance of the users choice. Find some useful links below:
+store-rdbms | The siddhi-store-rdbms extension is an extension to Siddhi that can be used to persist events to an RDBMS instance of the user's choice.
+store-redis | The siddhi-store-redis extension is an extension for siddhi redis event table implementation. This extension can be used to persist events to a redis cloud instance of version 4.x.x.
+store-solr | The siddhi-store-solr extension is an extension for siddhi Solr event table implementation. This extension can be used to persist events to a Solr cloud instance of version 6.x.x.
+
+### Extensions released under GPL License
+Name | Description
+:-- | :--
+execution-geo | The siddhi-gpl-execution-geo extension is an extension to Siddhi that provides geo data related functionality such as checking whether a given geo coordinate is within a predefined geo-fence, etc.
+execution-nlp | The siddhi-gpl-execution-nlp extension is an extension to Siddhi that can be used to process natural language.
+execution-pmml | The siddhi-gpl-execution-pmml extension is an extension to Siddhi that can be used to process texts based on a PMML processing model.
+execution-r | The siddhi-gpl-execution-r extension is an extension to Siddhi that can be used to process events with R scripts.
+execution-streamingml | The siddhi-execution-streamingml is an extension to Siddhi that performs streaming machine learning on event streams.
+
+
+## Extension Repositories
+
+All the extension repositories maintained by WSO2 can be found here
diff --git a/docs/index.md b/docs/index.md
index e67bf5317c..e15b6b2a3e 100755
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,5 +1,5 @@
-**Siddhi** - Cloud native stream processing engine
-===================================================
+**Siddhi** - Cloud Native Stream Processor
+===========================================
[![Jenkins Build Status](https://wso2.org/jenkins/view/wso2-dependencies/job/siddhi/job/siddhi/badge/icon)](https://wso2.org/jenkins/view/wso2-dependencies/job/siddhi/job/siddhi)
[![GitHub (pre-)release](https://img.shields.io/github/release/siddhi-io/siddhi/all.svg)](https://github.com/siddhi-io/siddhi/releases)
@@ -8,15 +8,33 @@
[![codecov](https://codecov.io/gh/siddhi-io/siddhi/branch/master/graph/badge.svg)](https://codecov.io/gh/siddhi-io/siddhi)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
-[Geting Started](documentation/siddhi-5.x/quckstart-5.x/) | [Download](download/) | [User Guide](documentation/siddhi-5.x/user-guide-introduction-5.x/) | [Contribute](contribution/)
+[Geting Started](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/quckstart-5.x/) | [Download](https://siddhi-io.github.io/siddhi/download/) | [User Guide](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/user-guide-5.x/) | [Contribute](https://siddhi-io.github.io/siddhi/contribution/)
Siddhi is a cloud native **_Streaming_** and **_Complex Event Processing_** engine that understands **Streaming SQL queries** in order to capture events from diverse data sources, process them, detect complex conditions, and publish output to various endpoints in real time.
-Siddhi can run as an embedded [Java library](documentation/siddhi-5.x/siddhi-as-a-java-library-5.x/), and as a microservice on [bare metal, VM](documentation/siddhi-5.x/siddhi-as-a-local-microservice-5.x/), [Docker](documentation/siddhi-5.x/siddhi-as-a-docker-microservice-5.x/) and natively in [Kubernetes](documentation/siddhi-5.x/siddhi-as-a-kubernetes-microservice-5.x/). It also has a [graphical and text editor](#siddhi-development-environment) for building Streaming Data Integration and Streaming Analytics applications.
+Siddhi can run as an embedded [Java library](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/siddhi-as-a-java-library-5.x/), and as a micro service on [bare metal, VM](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/siddhi-as-a-local-microservice-5.x/), [Docker](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/siddhi-as-a-docker-microservice-5.x/) and natively in [Kubernetes](https://siddhi-io.github.io/siddhi/documentation/siddhi-5.x/siddhi-as-a-kubernetes-microservice-5.x/). It also has a [graphical and text editor](#siddhi-development-environment) for building Streaming Data Integration and Streaming Analytics applications.
-!!! Info "For more details on Siddhi Cloud Native Stream Processor, please refer [this](https://siddhi.io/)"
+## Distributions
-## Overview
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+And more [installation options](https://siddhi-io.github.io/siddhi/download/)
+
+## Overview
![](https://raw.githubusercontent.com/siddhi-io/siddhi/master/docs/images/siddhi-overview.png?raw=true "Overview")
@@ -72,7 +90,27 @@ If you are a Siddhi user, we would love to hear more on how you use Siddhi? Plea
## Get Started!
-Get started with Siddhi in a few minutes by following the Siddhi Quick Start Guide
+Get started with Siddhi in a few minutes by following the Siddhi Quick Start Guide
+
+## Siddhi Development Environment
+
+**Siddhi Tooling**
+
+Siddhi provides siddhi-tooling that supports following features to develop and test stream processing applications:
+
+* **Text Query Editor** with syntax highlighting and advanced auto completion support.
+* **Event Simulator and Debugger** to test Siddhi Applications.
+ ![](https://raw.githubusercontent.com/siddhi-io/siddhi/master/docs/images/editor/source-editor.png "Source Editor")
+
+* **Graphical Query Editor** with drag and drop query building support.
+ ![](https://raw.githubusercontent.com/siddhi-io/siddhi/master/docs/images/editor/graphical-editor.png "Graphical Query Editor")
+
+**IntelliJ IDEA Plugin**
+
+Install IDEA plugin to get the following features:
+
+* **Siddhi Query Editor** with syntax highlighting and with basic auto completion
+* **Siddhi Runner and Debugger** support to test Siddhi Application
## Siddhi Versions
@@ -102,7 +140,7 @@ Get started with Siddhi in a few minutes by following the 5.0.0.
+Latest API Docs is 5.0.1.
## Contact us
* Post your questions with the "Siddhi" tag in Stackoverflow.
@@ -112,7 +150,23 @@ Latest API Docs is extensions. For more details contact via http://wso2.com/support/
diff --git a/mkdocs.yml b/mkdocs.yml
index 2f450646bc..d2b9bcb6ef 100755
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -31,11 +31,12 @@ markdown_extensions:
guess_lang: false
- pymdownx.tasklist:
custom_checkbox: true
-- markdown.extensions.attr_list:
+- markdown.extensions.attr_list: null
pages:
- Welcome to Siddhi: index.md
- API Docs:
- latest: api/latest.md
+ - 5.0.1: api/5.0.1.md
- 5.0.0: api/5.0.0.md
- 4.5.11: api/4.5.11.md
- 4.5.10: api/4.5.10.md