11 namespace reduce_task {
18 return HCE::types::MessageType::mtDrce;
23 return taskReduceResults_.find( reduceTaskId ) != taskReduceResults_.end();
28 auto iter = taskReduceResults_.find( reduceTaskId );
30 if( iter == taskReduceResults_.end() ) {
37 auto iter = taskReduceResults_.find( reduceTaskId );
38 if( iter == taskReduceResults_.end() ) {
48 Poco::SharedPtr< DRCEResultData > resultData = iter->second;
50 for(
size_t i = 0, n = tmpResult.
getItemsCount(); i < n; i++ ) {
51 resultData->addDataItem( tmpResult.
getDataItem( i ) );
60 auto iter = taskReduceResults_.find( reduceTaskId );
62 if( iter == taskReduceResults_.end() ) {
66 Poco::SharedPtr< DRCEResultData > resultData = iter->second;
71 if( resultSerializator.
serialize( json ) ) {
80 if( taskReduceResults_.erase( reduceTaskId ) != 1 ) {