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.InputMap
Map the inputs so that the next Fibonacci numbers can be calculated while preserving the
original input tuple.
|
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.
|
Constructor and Description |
---|
IterateExample() |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.