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
SphinxResultAscSorter.cpp
Go to the documentation of this file.
1
#include "
SphinxResultAscSorter.hpp
"
2
3
namespace
HCE
4
{
5
namespace
sphinx
6
{
7
namespace
reduce_task
8
{
9
10
using namespace
std;
11
12
SphinxResultAscSorter::SphinxResultAscSorter
() {
13
}
14
15
SphinxResultAscSorter::~SphinxResultAscSorter
() {
16
}
17
18
bool
SphinxResultAscSorter::operator ()
(pair<string, unsigned long long> first,
19
pair<string, unsigned long long> second)
const
20
{
21
return
first.first < second.first;
22
}
23
24
void
SphinxResultAscSorter::sort
25
(vector<pair<string, unsigned long long> > &allWeightDocIds)
26
{
27
std::sort(allWeightDocIds.begin(), allWeightDocIds.end(), *
this
);
28
}
29
30
}
31
}
32
}
sources
utils
reduceSphinx
src
SphinxResultAscSorter.cpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2