Class StreamSQLExample

java.lang.Object
org.apache.flink.table.examples.java.basics.StreamSQLExample

public final class StreamSQLExample extends Object
Simple example for demonstrating the use of SQL on a table backed by a DataStream in Java DataStream API.

In particular, the example shows how to

  • convert two bounded data streams to tables,
  • register a table as a view under a name,
  • run a stream SQL query on registered and unregistered tables,
  • and convert the table back to a data stream.

The example executes a single Flink job. The results are written to stdout.

  • Constructor Details

    • StreamSQLExample

      public StreamSQLExample()
  • Method Details