Package com.taobao.top.analysis.node.job

Examples of com.taobao.top.analysis.node.job.JobMergedResult


      otherResult = ReportUtil.mergeEntryResult(results, job.getStatisticsRule().getEntryPool(), false,ReduceType.SHALLOW_MERGE);

    //对于timeout引起的reset做一层保护,丢弃掉分支合并的结果
    if (job.getEpoch().get() == epoch) {
      // 将结果放入到队列中等待获得锁的线程去执行
      JobMergedResult jr = new JobMergedResult();
      jr.setMergeCount(mergeCount);
      jr.setMergedResult(otherResult);
      branchResultQueue.offer(jr);
    } else {
      logger.error(String.format("Discard one branch result, because of epoch not equals, of job:%s", job.getJobName()));
    }
   
View Full Code Here


        mergeResultCount += jt.getTaskIds().size();
        jt = jobTaskResultsQueue.poll();
      }

     
      JobMergedResult jr = branchResultQueue.poll();

      // 将未何并到主干的结果也继续交给线程去做合并
      while (jr != null) {
        mergeResults.add(jr.getMergedResult());
        mergeResultCount += jr.getMergeCount();
        jr = branchResultQueue.poll();
      }
     
      // 最后一拨需要合并的数据,不需要再等待批量去做
      if (job.getMergedTaskCount().get() + mergeResultCount >= job.getTaskCount())
View Full Code Here

TOP

Related Classes of com.taobao.top.analysis.node.job.JobMergedResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.