New modularity features facilitate reuse and team development, and improve your ability to maintain large, complex projects.
When you create and load modular CCL code:
- CREATE MODULE statement defines a module.
- Modules can contain streams and windows, which can contain continuous queries.
- Modules can reference declared parameters, where the parameters are set when the module is loaded.
- IMPORT statement lets you reference declarations, modules, libraries of external C/C++ and Java functions, and other elements defined in separate .ccl files. IMPORT is similar to #include in C/C++.
- LOAD MODULE statement invokes a module, sets parameters, and defines bindings to streams and windows that supply data to the module, and receive data from the module.
- You can load the same module multiple times in a single project.