Difference between revisions of "Int Sum Collector"
Jump to navigation
Jump to search
(Created page with "=Motivation= Learn about Collector before we dig into the MapReduce Lab. =Background= https://docs.oracle.com/javase/8/docs/api/java/util/stream/Collector.html interface Co...") |
|||
Line 3: | Line 3: | ||
=Background= | =Background= | ||
− | + | [https://docs.oracle.com/javase/8/docs/api/java/util/stream/Collector.html interface Collector<T,A,R>] | |
− | + | ||
+ | [https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/mutable/MutableInt.html class MutableInt] | ||
=Code To Implement= | =Code To Implement= |
Latest revision as of 03:09, 22 February 2018
Motivation
Learn about Collector before we dig into the MapReduce Lab.
Background
Code To Implement
ClassicReducer
class: | ClassicReducer.java | |
methods: | supplier,accumulator,combiner | |
package: | mapreduce.collector.studio | |
source folder: | student/src/main/java |
IntSumCollector
class: | IntSumCollector.java | |
methods: | supplier,accumulator,combiner,finisher | |
package: | mapreduce.collector.intsum.studio | |
source folder: | student/src/main/java |