hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
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
26
class
SphinxReduceTask
:
public
HCE::reduce::core::ReduceTaskIf
{
27
public
:
28
SphinxReduceTask
();
29
~SphinxReduceTask
();
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
sources
utils
reduceSphinx
src
SphinxReduceTask.hpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2