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:
| 限定符和类型 | 类和说明 |
|---|---|
static class |
IterateExample.InputMap
Map the inputs so that the next Fibonacci numbers can be calculated while preserving the original input tuple.
|
static class |
IterateExample.MySelector
OutputSelector testing which tuple needs to be iterated again.
|
static class |
IterateExample.OutputMap
Giving back the input pair and the counter.
|
static class |
IterateExample.Step
Iteration step function that calculates the next Fibonacci number.
|
| 构造器和说明 |
|---|
IterateExample() |
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.