本文整理汇总了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));
}
}
示例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));
}
}
示例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()));
}
}
示例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;
}
示例5: getReport
import org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport; //导入依赖的package包/类
public TaskCompletionReport getReport() {
return report;
}