feat: Added Map Reduce Design Pattern (#3184)

* MapReduce design pattern added

* Updated README.md

* added module to parent pom
This commit is contained in:
Harshita Vidapanakal
2025-02-22 20:08:05 +02:00
committed by GitHub
parent e17f138223
commit 6785b53b02
14 changed files with 815 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

+24
View File
@@ -0,0 +1,24 @@
@startuml
package com.iluwatar {
class Main {
+ Main()
+ main(args : String[]) {static}
}
class MapReduce {
+ MapReduce()
+ mapReduce(inputs : List<String>) : List<Map.Entry<String, Integer>> {static}
}
class Mapper {
+ Mapper()
+ map(input : String) : Map<String, Integer> {static}
}
class Reducer {
+ Reducer()
+ reduce(grouped : Map<String, List<Integer>>) : List<Map.Entry<String, Integer>> {static}
}
class Shuffler {
+ Shuffler()
+ shuffleAndSort(mapped : List<Map<String, Integer>>) : Map<String, List<Integer>> {static}
}
}
@enduml