HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxResultSorterIf.hpp
Go to the documentation of this file.
1 
15 #ifndef SPHINXRESULTSORTERIF_HPP_
16 #define SPHINXRESULTSORTERIF_HPP_
17 
18 #include "SphinxResultData.hpp"
19 #include <Poco/SharedPtr.h>
20 #include <string>
21 
22 namespace HCE
23 {
24 namespace sphinx
25 {
26 namespace reduce_task
27 {
28 
29 const unsigned int NULL_SORT = 0;
30 const unsigned int ASC_SORT = 1;
31 const unsigned int DESC_SORT = 2;
32 
33 
35 public:
37 
38  virtual void sortByWeight(
39  std::vector<std::pair<std::string, unsigned long long> > &weightDocIds) = 0;
40 };
41 
42 }
43 }
44 }
45 
46 #endif