JavaScript user-defined functions with the enhanced support of String, Math, Array, Date, regular expressions, Integer to Float conversion, and hex to decimal/binary/integer functions are supported with Azure Stream Analytics to apply query transformation, on streaming data. These functions provide generic stateless computation values applied to input data streams or reference data streams of Stream Analytics without plugging into any data source.
The JavaScript UDF for Stream Analytics jobs are advantageous in the following domains:
- Data Streams with string manipulation with JavaScript regular expression functions like
Regexp
, along with String methods like extract (Regexp_extract
), replace (Regexp_replace
), match (Regexp_match
), and split (Regexp_split
) - Data events conversion, for example, Hex to Integer, decimal to binary, and data encoding/decoding
- Mathematical and statistical function computations on complex events...