15 #ifndef SPHINXRESULTBUILDER_HPP_
16 #define SPHINXRESULTBUILDER_HPP_
23 namespace reduce_task {
30 Poco::SharedPtr<SphinxResultData>
build(
31 Poco::SharedPtr<SphinxReduceDataStorage> &sphinxDataStorage,
32 const Poco::SharedPtr<HCE::reduce::core::ReduceResultIf> &sphinxReduceResult,
36 const Poco::SharedPtr<SphinxResultData> &sphinxResultData,
37 std::vector<std::pair<std::string, unsigned long long> > &selectWeightKeys);
40 static void fillMatchInfo(Poco::SharedPtr<SphinxReduceDataStorage> &sphinxDataStorage,
41 Poco::SharedPtr<HCE::reduce::core::ReduceResultIf> sphinxReduceResult,
42 Poco::SharedPtr<SphinxResultData>& newSphinxResultData);
44 static void fillRequestInfo(
const std::vector<SphinxRequestInfo>& requestInfo,
45 Poco::SharedPtr<SphinxResultData>& newSphinxResultData);
47 static void fillMatchDataBaseOnKeys(
const Poco::SharedPtr<SphinxResultData> &sphinxResultData,
48 std::vector<std::pair<std::string, unsigned long long> > &selectWeightKeys,
49 Poco::SharedPtr<SphinxResultData> &newSphinxResult);
51 static void fillRequestInfoBaseOnResultData(
const Poco::SharedPtr<SphinxResultData> &sphinxResultData,
52 Poco::SharedPtr<SphinxResultData> &newSphinxResult);
54 static void buildMatchInfoMap(std::map<unsigned long long, SphinxMatchInfo> &keysMatchInfo,
55 const Poco::SharedPtr<SphinxResultData> &sphinxResultData);