Module Creation and Usage

Use the CREATE MODULE statement to create a reusable module, and LOAD MODULE to load a previously created module.

When you load a module, you can connect or bind its input streams or windows to streams in the project. A module's outputs can be exposed to its parent's scope and referenced in that scope using the aliases provided in the LOAD MODULE statement.

Parameters inside the module are bound to parameters in the parent scope or to constant expressions. Stores within the module are bound to stores in the parent scope. Binding a store within a module to a store outside the module means that any windows using the module store instead use the bound store.