Motivation
Collector is fundamental to the MapReduce Framework lab.
Motivation
Learn about Collector before we dig into the MapReduce Lab.
Background
interface Collector<T,A,R>
class MutableInt
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 |
Testing Your Solution
Correctness
class: |
CollectorStudioTestSuite.java |
|
package: |
mapreduce |
source folder: |
testing/src/test/java |