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
SphinxReduceResult.cpp
Go to the documentation of this file.
1
#include "
SphinxReduceResult.hpp
"
2
3
namespace
HCE{
4
namespace
sphinx{
5
namespace
reduce_task{
6
7
SphinxReduceResult::SphinxReduceResult
(){}
8
9
SphinxReduceResult::~SphinxReduceResult
(){}
10
11
bool
SphinxReduceResult::hasNext
()
12
{
13
if
(_resultIterator != _result.end()){
14
return
true
;
15
}
16
return
false
;
17
}
18
19
void
SphinxReduceResult::reset
()
20
{
21
_resultIterator = _result.begin();
22
}
23
24
void
SphinxReduceResult::getNext
(std::string &
key
, std::string &value)
25
{
26
key = _resultIterator->first;
27
value = _resultIterator->second;
28
++_resultIterator;
29
}
30
31
void
SphinxReduceResult::addKeyValue
(
const
std::string &
key
,
32
const
std::string &value)
33
{
34
_result.push_back(std::make_pair(key, value));
35
}
36
37
}
38
}
39
}
sources
utils
reduceSphinx
src
SphinxReduceResult.cpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2