tahamajs/OS / Files /past_terms /Operating-System-Course-Projects /2.Map-Reduce-Genre-Counter /src /counting_processor.hpp
| class CountingProcessor { | |
| public: | |
| CountingProcessor(std::string file_path, std::vector<std::string> genres, Log log); | |
| void run(); | |
| private: | |
| const std::string file_path_; | |
| std::unordered_map<std::string, int> genres_count_; | |
| bool is_done_ = false; | |
| Log log_; | |
| void countGenres(); | |
| void sendResultToGenresProcesses(); | |
| }; | |
Xet Storage Details
- Size:
- 502 Bytes
- Xet hash:
- 3e83948fddd946debe5573cfb3a1c9e0b3150e8d3f4f598613a72cb5923f1618
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.