Windbag MapReduce Application
Jump to navigation
Jump to search
Contents
Motivation
A simple Mapper and two simple Collectors reinforce our understanding of how pieces of the MapReduce puzzle can be reused. Further, we will reduce the value type of Boolean to both an Integer and a Double in two different Collectors.
Background
Code To Implement
class: | WindbagMapper.java | |
methods: | map | |
package: | mapreduce.apps.windbag.studio | |
source folder: | student/src/main/java |
method: public void map(PlayLine item, BiConsumer<PlayRole, Boolean> keyValuePairConsumer)
(sequential implementation only)
class: | TrueCountClassicReducer.java | |
methods: | finisher | |
package: | mapreduce.apps.windbag.studio | |
source folder: | student/src/main/java |
method: public Function<List<Boolean>, Integer> finisher()
(sequential implementation only)
Warning:This class inherits from ClassicReducer. Be sure to have completed that studio first. |
class: | TruePortionClassicReducer.java | |
methods: | finisher | |
package: | mapreduce.apps.windbag.studio | |
source folder: | student/src/main/java |
method: public Function<List<Boolean>, Double> finisher()
(sequential implementation only)
Warning:This class inherits from ClassicReducer. Be sure to have completed that studio first. |
Testing Your Solution
Correctness
class: | WindbagStudioTestSuite.java | |
package: | mapreduce | |
source folder: | testing/src/test/java |
Output
WindbagApp