Creating UDFs
User Defined Functions (UDFs) allow you to do simple transformations on event streams. This is used in the Projection processor.
Example 1
The ConvertToTimestampLong UDF is a good example of a new UDF implementation.
Example 2
In this example, you to concatenate the values of two fields of an event. To do this, define a MyConcat function by implementing the UDF2 interface as shown below
pubic class MyConcat implements UDF2<String, String, String> { public String evaluate(String s1, String s2) { return s1.concat(s2); } }