Class WindowJoin
- java.lang.Object
-
- org.apache.flink.streaming.examples.join.WindowJoin
-
public class WindowJoin extends Object
Example illustrating a windowed stream join between two data streams.The example works on two input streams with pairs (name, grade) and (name, salary) respectively. It joins the streams based on "name" within a configurable window.
The example uses a built-in sample data generator that generates the streams of pairs at a configurable rate.
-
-
Constructor Summary
Constructors Constructor Description WindowJoin()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple3<String,Integer,Integer>>runWindowJoin(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<String,Integer>> grades, org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<String,Integer>> salaries, long windowSize)
-
-
-
Method Detail
-
runWindowJoin
public static org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple3<String,Integer,Integer>> runWindowJoin(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<String,Integer>> grades, org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<String,Integer>> salaries, long windowSize)
-
-