Class IterateExample
- java.lang.Object
-
- org.apache.flink.streaming.examples.iteration.IterateExample
-
public class IterateExample extends Object
Example illustrating iterations in Flink streaming.The program sums up random numbers and counts additions it performs to reach a specific threshold in an iterative streaming fashion.
This example shows how to use:
- streaming iterations,
- buffer timeout to enhance latency,
- directed outputs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIterateExample.InputMapMap the inputs so that the next Fibonacci numbers can be calculated while preserving the original input tuple.static classIterateExample.OutputMapGiving back the input pair and the counter.static classIterateExample.StepIteration step function that calculates the next Fibonacci number.
-
Constructor Summary
Constructors Constructor Description IterateExample()
-