User-Defined External Functions

In CCL projects, use the CREATE LIBRARY statement to call user-defined functions written in C/C++ or Java.

Load C/C++ functions from shared libraries, .so files in Linux and Solaris, and .dll files in Windows. Load Java functions from either .class files or .jar files.

Declare external functions in CCL using the CREATE LIBRARY statement. Once declared, you can use the functions anywhere you use built-in functions.

Scalar functions are supported. Aggregate functions are not supported.

Note: C/C++ external library calls support all ESP datatypes, namely boolean, integer, long, float, money(n), date, bigdatetime, binary, interval, and timestamp.

Java external library calls only support integer, long, float, and string ESP datatypes.

Complex types such as dictionaries, vectors, event caches and record types are not supported in external functions.