Compiling streams processing applications
The SPL compiler is an incremental compiler that generates C++ code. You use the SPL compiler to generate an application bundle file that is used to run a streams processing application.
About this task
The SPL compiler analyzes changes in a streams processing application. The compiler then generates and compiles only code for the modified portions of the application.
To compile an application, the -M, --main-composite option is used to tell the sc command about the main composite of the application. The main composite name is a fully qualified name. For instance, if the name of the main composite is WordCount and its namespace is my.sample, then the sc command is started as follows:
sc -M my.sample::WordCount
The toolkit that defines the composite operator my.sample::WordCount must be in the SPL path of the SPL compiler.