public class WindowJoin extends Object
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 and Description |
---|
WindowJoin() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static DataStream<Tuple3<String,Integer,Integer>> |
runWindowJoin(DataStream<Tuple2<String,Integer>> grades,
DataStream<Tuple2<String,Integer>> salaries,
long windowSize) |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.