hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxReduceResult.hpp
Go to the documentation of this file.
1 
15 #ifndef SPHINXREDUCERESULT_HPP_
16 #define SPHINXREDUCERESULT_HPP_
17 
18 #include "ReduceTaskCore.hpp"
19 #include <vector>
20 
21 namespace HCE{
22 namespace sphinx{
23 namespace reduce_task
24 {
25 
27 public:
30 
31  bool hasNext();
32  void reset();
33  void getNext(std::string &key, std::string &value);
34  void addKeyValue(const std::string &key, const std::string &value);
35 
36  private:
37  std::vector<std::pair<std::string, std::string> > _result;
38  std::vector<std::pair<std::string, std::string> >::iterator _resultIterator;
39  };
40 
41 }
42 }
43 }
44 
45 #endif