Additional exercises

Explore additional SPL semantics by writing programs on your own.

The table below lists several topics to study further and exercises to try to expand and reinforce your SPL skills.

Table 1. Topics and exercises for further study
Topic Exercise Related documentation
Expression language Write a program to reverse the lines of a small file. Expression language
Type system Create a histogram of the length of lines in a file.
Other operators and functions in the SPL standard toolkit Merge two sorted streams such that the output is also sorted. SPL standard toolkit
Windows Sort a file five lines at a time. Streams and tuples
Configs Change the logLevel config and look at the log files to see what happens. You can change the log level for all runtime services and applications in an instance.
C++ primitive operators Write a C++ primitive operator that extracts groups that are matched by subexpressions of a regexp. Developing C++ primitive operators
Java primitive operators Write a Java primitive operator that extracts groups that are matched by subexpressions of a regexp. Developing Java primitive operators
Writing native functions Turn a map into a list of (key,value) tuples. Creating native functions
Dynamic application composition Run the SchemaSharing sample that is included with Teracloud® Streams. Dynamic application composition
Streams debugger Run the NumberedCat program and interactively drop a tuple. Debugging with the Streams Debugger