14 #ifndef SPHINXRESULTDATAACCUMULATOR_HPP_
15 #define SPHINXRESULTDATAACCUMULATOR_HPP_
27 _sphinxDataStorage(sphinxDataStorage){
32 accumulateSphinxMatchInfo(sphinxResultData);
33 accumulateSphinxRequestInfo(sphinxResultData);
37 return _allSphinxRequestInfo;
41 return _sphinxDataStorage;
45 Poco::SharedPtr<SphinxReduceDataStorage> _sphinxDataStorage;
46 std::vector<SphinxRequestInfo> _allSphinxRequestInfo;
50 for (
size_t curMatchInfoIndex = 0; curMatchInfoIndex < totalMatchInfoNumber;
53 _sphinxDataStorage->addData(matchInfo);
57 void accumulateSphinxRequestInfo(SphinxResultData& sphinxResultData){
58 size_t totalRequestInfoNumber = sphinxResultData.getRequestInfoCount();
59 for(
size_t curRequestInfoIndex = 0; curRequestInfoIndex < totalRequestInfoNumber;
60 ++curRequestInfoIndex){
61 _allSphinxRequestInfo.push_back(sphinxResultData.getRequestInfoItem(curRequestInfoIndex));