Sample | Description | Focus |
{@link simple.HelloWorld} | Prints Hello World! to standard output. |
Basic mechanics of declaring a topology and executing it. |
{@link simple.Echo} | Echos command line arguments to standard out. |
Passing in runtime values to a topology. |
{@link simple.FilterEcho} | Echos a subset of command line arguments to standard out |
Use of Java functional programming style for filtering. |
{@link simple.Grep} | Continually watches a directory, reads new files in the directory and prints lines from the files containing a search term to standard out |
Use of utility methods provided by the Java topology API. |
{@link twitter.TwitterTrending} | Reads tweets from a specified directory and calculates the trending hashtags in parallel. |
A real-world usage for windowing. |
{@link simple.RegexGrep} | Continually watches a directory, reads new files in the directory and prints lines
from the files that match a regular expression to standard out |
Java functional programming using an anonymous class with initialization. |
{@link vwap.Vwap} | SPL Vwap sample reimplemented in Java. |
Java objects as tuples, integration with SPL operators and tuples. |
{@link topic.PublishBeacon},{@link topic.SubscribeBeacon} | Publish-subscribe model for streams across applications |
Publish-subscribe in distributed. |
{@link kafka.KafkaSample} | Publishes messages to a Kafka topic. Subscribes to a Kafka topic and prints results. |
Integrating with Apache Kafka. |
{@link mqtt.MqttSample} | Publishes messages to a MQTT topic. Subscribes to a MQTT topic and prints results. |
Integrating with MQTT. |