WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
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

« Previous Version 24 Current »

Siddhi language has a wide variety of extension ranging from string processing to natural language processing. These extensions can be utilized in numerous scenarios to manipulate attributes with ease. When using extensions within Siddhi queries you need to follow the convention of extensionName:functionName to refer to a particular extension. If the extension is of the Function type you can refer to it as shown in the following example in different parts of the query.

FROM inputStream[str:contains(description, "Pi-Value")]
SELECT id, math:round(math:pi()) as roundedPiValue
INSERT INTO outputStream;

If the extension is of the Stream Processor type, you can refer to it as follows.
#reorder:kslack(eventTimestamp)

e.g., 

@info(name = 'query1') 
FROM inputStream#reorder:kslack(eventTimestamp) 
SELECT eventTimestamp, price, volume 
INSERT INTO outputStream;

 

The extensions that are currently available for Siddhi are as follows

 

  • No labels