public class IterateExample extends Object
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:
| Modifier and Type | Class and Description |
|---|---|
static class |
IterateExample.MySelector
OutputSelector testing which tuple needs to be iterated again.
|
static class |
IterateExample.Step
Iteration step function which takes an input (Double , Integer) and
produces an output (Double + random, Integer + 1).
|
| Constructor and Description |
|---|
IterateExample() |
Copyright © 2015 The Apache Software Foundation. All rights reserved.