Event Stream Processor includes function examples that demonstrate a range of functionality, including how to use bitwise and basic aggregate functions.
Note: The example syntax occasionally wraps due to space constraints. Wrapped lines should be entered on a single line.
CREATE LIBRARY statement
Identify an external library, and deploy the functions in that library.
Aggregate Functions
Apply first, last, max, and min functions to outgoing data.
Bitwise Functions
Apply bitand, bitor, bitshiftleft, bitshiftright, and bitmask operations to an output window.
Data Aggregation
Read data from a comma-separated value (.csv) file, and aggregate the data using a volume-weighted average price (vwap) function.
Created August 28, 2012. Send feedback on this help topic to Sybase Technical Publications:
pubs@sybase.com