Windbag MapReduce Application

From CSE231 Wiki
Revision as of 08:06, 7 March 2019 by Cosgroved (talk | contribs) (Created page with "=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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Polonius' Advice To Laertes

Code To Implement

class: WindbagMapper.java Java.png
methods: map
package: mapreduce.apps.windbag.studio
source folder: student/src/main/java

method: public void map(PlayLine item, BiConsumer<PlayRole, Boolean> keyValuePairConsumer) Sequential.svg (sequential implementation only)

class: TrueCountClassicReducer.java Java.png
methods: finisher
package: mapreduce.apps.windbag.studio
source folder: student/src/main/java

method: public Function<List<Boolean>, Integer> finisher() Sequential.svg (sequential implementation only)

Attention niels epting.svg Warning:This class inherits from ClassicReducer. Be sure to have completed that studio first.
class: TruePortionClassicReducer.java Java.png
methods: finisher
package: mapreduce.apps.windbag.studio
source folder: student/src/main/java

method: public Function<List<Boolean>, Double> finisher() Sequential.svg (sequential implementation only)

Attention niels epting.svg Warning:This class inherits from ClassicReducer. Be sure to have completed that studio first.

Testing Your Solution

Correctness

class: WindbagStudioTestSuite.java Junit.png
package: mapreduce
source folder: testing/src/test/java

Output

WindbagApp