Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Siddhi supports custom codes within queries. You can implement Windows, Transformers, OutputAttributeProcessors, Functions (Conditions and Expressions) in a pluggable manner using the current implementation.

Note

These are subjected to be changed in a future release.

Use of Namespaces and Functions in Siddhi Extensions

Siddhi allows extensions to have namespaces and function names, enabling users to easily identify the behaviour of the extensions when writing queries.

To add namespace and function names to the extension, use the following Java annotation in the extension class.

@SiddhiExtension(namespace = "testExt", function = "unique")
public class UniqueWindowProcessor extends WindowProcessor {
   ...
}

You can refer to the above class in the query as follows:

from StockExchangeStream[price >= 20]#window.testExt:unique(symbol)
select symbol, price
insert into StockQuote 

The following sections explains how we can create different types of Siddhi Extensions,

  • No labels