11 namespace reduce_task {
18 return HCE::types::MessageType::mtDrce;
24 return taskReduceResults_.find( reduceTaskId ) != taskReduceResults_.end();
29 auto iter = taskReduceResults_.find( reduceTaskId );
31 if( iter == taskReduceResults_.end() ) {
38 auto iter = taskReduceResults_.find( reduceTaskId );
39 if( iter == taskReduceResults_.end() ) {
49 Poco::SharedPtr< DRCEResultData > resultData = iter->second;
51 for(
size_t i = 0, n = tmpResult.
getItemsCount(); i < n; i++ ) {
52 resultData->addDataItem( tmpResult.
getDataItem( i ) );
61 auto iter = taskReduceResults_.find( reduceTaskId );
63 if( iter == taskReduceResults_.end() ) {
67 Poco::SharedPtr< DRCEResultData > resultData = iter->second;
72 if( resultSerializator.
serialize( json ) ) {
81 if( taskReduceResults_.erase( reduceTaskId ) != 1 ) {