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
SphinxResultDescSorter.cpp
Go to the documentation of this file.
1
#include "
SphinxResultDescSorter.hpp
"
2
3
namespace
HCE
4
{
5
namespace
sphinx
6
{
7
namespace
reduce_task
8
{
9
10
using namespace
std;
11
12
SphinxResultDescSorter::SphinxResultDescSorter
() {
13
}
14
15
SphinxResultDescSorter::~SphinxResultDescSorter
() {
16
}
17
18
bool
SphinxResultDescSorter::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
SphinxResultDescSorter::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
SphinxResultDescSorter.cpp
Generated on Tue Jun 30 2015 19:42:15 for hce-node application by
1.8.1.2