Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For further information on Siddhi Query Language, see  http://wso2.github.io/siddhi/documentation/siddhi-4.0/.

Siddhi Extensions

The extensions that are included in are in Image Added are the following:

  • math
  • string
  • unique

Working with UDRs

This section provides information on how to work with UDRs when using the Siddhi Analytics agent, providing examples in Siddhi Query Language.

Input UDRs

UDRs routed to the Siddhi Analytics agent are inserted into all compatible input streams and are either

  • Kept if the first attribute of the input stream is input object, or
  • Discarded

See the examples below.

Output UDRs

UDRs routed from the Siddhi Analytics agent are either

  • Newly created, or
  • Reused from the input stream if the first attribute selected is input.

See the examples below.

Updating UDRs

UDRs are updated if they are inserted into an output stream that is routed, otherwise they are passed along unchanged.

Examples

The following examples show how to work with UDRs in Siddhi Query Language.

...

Info
titleExample

The input UDR is discarded and a newly created UDR is output when the price is greater than 10.5.

Code Block
define stream StockInputStream(symbol string, price float);
 
from StockInputStream[price > 10.5]
select symbol, price
insert into StockOutputStream;



Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: