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
SphinxTaskReducersStorage.hpp
Go to the documentation of this file.
1
14
#ifndef SPHINXTASKREDUCERSSTORAGE_HPP_
15
#define SPHINXTASKREDUCERSSTORAGE_HPP_
16
17
#include "
SphinxTaskReducersStorageIf.hpp
"
18
#include "
SphinxReduceJobBuilder.hpp
"
19
#include "
Exceptions.hpp
"
20
#include <map>
21
#include <utility>
22
23
namespace
HCE{
24
namespace
sphinx{
25
namespace
reduce_task{
26
27
class
SphinxTaskReducersStorage
:
public
SphinxTaskReducersStorageIf
{
28
public
:
29
typedef
std::map<unsigned long long, Poco::SharedPtr<SphinxTaskReducerIf> >::
30
iterator
StorageIterator
;
31
32
SphinxTaskReducersStorage
();
33
virtual
~SphinxTaskReducersStorage
();
34
35
Poco::SharedPtr<SphinxTaskReducerIf>
findByKey
(
unsigned
long
long
taskId
);
36
void
deleteByKey
(
unsigned
long
long
taskId
);
37
void
addWithKey
(
unsigned
long
long
taskId
, Poco::SharedPtr<SphinxTaskReducerIf>&
38
sphinxTaskReducer);
39
40
private
:
41
std::map<unsigned long long, Poco::SharedPtr<SphinxTaskReducerIf> >storage;
42
43
StorageIterator
findIteratorBy(
unsigned
long
long
taskId
);
44
};
45
46
}
47
}
48
}
49
50
#endif
sources
utils
reduceSphinx
src
SphinxTaskReducersStorage.hpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2