当前位置: 首页>>代码示例>>Java>>正文


Java TaskCompletionReport类代码示例

本文整理汇总了Java中org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport的典型用法代码示例。如果您正苦于以下问题:Java TaskCompletionReport类的具体用法?Java TaskCompletionReport怎么用?Java TaskCompletionReport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TaskCompletionReport类属于org.apache.tajo.ipc.TajoWorkerProtocol包,在下文中一共展示了TaskCompletionReport类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fillTaskStatistics

import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
private void fillTaskStatistics(TaskCompletionReport report) {
  this.progress = 1.0f;

  if (report.getShuffleFileOutputsCount() > 0) {
    this.getQueryUnit().setShuffleFileOutputs(report.getShuffleFileOutputsList());

    List<IntermediateEntry> partitions = new ArrayList<IntermediateEntry>();
    for (ShuffleFileOutput p : report.getShuffleFileOutputsList()) {
      IntermediateEntry entry = new IntermediateEntry(getId().getQueryUnitId().getId(),
          getId().getId(), p.getPartId(), getHost(), getPullServerPort());
      partitions.add(entry);
    }
    this.getQueryUnit().setIntermediateData(partitions);
  }
  if (report.hasInputStats()) {
    this.inputStats = report.getInputStats();
  }
  if (report.hasResultStats()) {
    this.resultStats = report.getResultStats();
    this.getQueryUnit().setStats(new TableStats(resultStats));
  }
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:23,代码来源:QueryUnitAttempt.java

示例2: fillTaskStatistics

import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
private void fillTaskStatistics(TaskCompletionReport report) {
  this.progress = 1.0f;

  List<IntermediateEntry> partitions = new ArrayList<IntermediateEntry>();

  if (report.getShuffleFileOutputsCount() > 0) {
    this.getQueryUnit().setShuffleFileOutputs(report.getShuffleFileOutputsList());

    for (ShuffleFileOutput p : report.getShuffleFileOutputsList()) {
      IntermediateEntry entry = new IntermediateEntry(getId().getQueryUnitId().getId(),
          getId().getId(), p.getPartId(), getHost(), getPullServerPort());
      partitions.add(entry);
    }
  }
  this.getQueryUnit().setIntermediateData(partitions);

  if (report.hasInputStats()) {
    this.inputStats = report.getInputStats();
  }
  if (report.hasResultStats()) {
    this.resultStats = report.getResultStats();
    this.getQueryUnit().setStats(new TableStats(resultStats));
  }
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:25,代码来源:QueryUnitAttempt.java

示例3: transition

import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
@Override
public void transition(QueryUnitAttempt taskAttempt,
                       TaskAttemptEvent event) {
  TaskCompletionReport report = ((TaskCompletionEvent)event).getReport();

  try {
    taskAttempt.fillTaskStatistics(report);
    taskAttempt.eventHandler.handle(new TaskTAttemptEvent(taskAttempt.getId(), TaskEventType.T_ATTEMPT_SUCCEEDED));
  } catch (Throwable t) {
    taskAttempt.eventHandler.handle(new TaskFatalErrorEvent(taskAttempt.getId(), t.getMessage()));
  }
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:13,代码来源:QueryUnitAttempt.java

示例4: TaskCompletionEvent

import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
public TaskCompletionEvent(TaskCompletionReport report) {
  super(new QueryUnitAttemptId(report.getId()), TaskAttemptEventType.TA_DONE);
  this.report = report;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:5,代码来源:TaskCompletionEvent.java

示例5: getReport

import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
public TaskCompletionReport getReport() {
  return report;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:TaskCompletionEvent.java


注:本文中的org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。