hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxReduceTask.hpp
Go to the documentation of this file.
1 
15 #ifndef SPHINXREDUCETASK_HPP_
16 #define SPHINXREDUCETASK_HPP_
17 
18 #include "ReduceTaskCore.hpp"
19 #include "SphinxReduceResult.hpp"
20 #include <map>
21 
22 namespace HCE{
23 namespace sphinx{
24 namespace reduce_task{
25 
27 public:
30 
31  void addKeyValue(const std::string& key, const std::string& value);
32  void fillReduceResult(Poco::SharedPtr<HCE::reduce::core::ReduceResultIf> reduceResult);
33 
34 private:
35  std::map<std::string, std::string> _reduceData;
36  std::map<std::string, std::string>::iterator _reduceDataIterator;
37 
38  bool hasKeyInData(const std::string& mapKey);
39  void saveBestWeight(const std::string& key, const std::string& value);
40  void addNewResource(const std::string& key, const std::string& value);
41 };
42 
43 }
44 }
45 }
46 
47 #endif