本文整理汇总了Java中org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport.getShuffleFileOutputsList方法的典型用法代码示例。如果您正苦于以下问题:Java TaskCompletionReport.getShuffleFileOutputsList方法的具体用法?Java TaskCompletionReport.getShuffleFileOutputsList怎么用?Java TaskCompletionReport.getShuffleFileOutputsList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.tajo.ipc.TajoWorkerProtocol.TaskCompletionReport
的用法示例。
在下文中一共展示了TaskCompletionReport.getShuffleFileOutputsList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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));
}
}