4 int main(
int argc,
char** argv)
8 std::string jsonReducingInputMessage =
"";
9 unsigned long long itemId = 3;
13 reducerFunctionalObjectSphinx.
accumulate(jsonReducingInputMessage, itemId);
18 if (reducerFunctionalObjectSphinx.
isCompleteTask(itemId, nodesCount) ==
true){
19 Poco::SharedPtr<HCE::reduce_types::ReducingOutputMessage>reducingOutputMessage = reducerFunctionalObjectSphinx.
reduce(itemId);
20 std::cout <<
"reduce results\n";
21 std::cout << reducingOutputMessage->getProcessingType() <<
std::endl;
22 std::cout << reducingOutputMessage->getBody() <<
std::endl;
23 std::cout << reducingOutputMessage->getProcessingErrorCode() <<
std::endl;
24 std::cout << reducingOutputMessage->getProcessingErrorMsg() <<
std::endl;
25 std::cout << reducingOutputMessage->getProcessingElapsedTime() <<
std::endl;