private StageInfo buildStageInfo(StageId stageId, Map<StageId, StageInfo> stageInfos) { StageInfo parent = stageInfos.get(stageId); checkArgument(parent != null, "No stageInfo for %s", parent); List<StageInfo> childStages = stageLinkages.get(stageId).getChildStageIds().stream() .map(childStageId -> buildStageInfo(childStageId, stageInfos)) .collect(toImmutableList()); if (childStages.isEmpty()) { return parent; } return new StageInfo( parent.getStageId(), parent.getState(), parent.getSelf(), parent.getPlan(), parent.getTypes(), parent.getStageStats(), parent.getTasks(), childStages, parent.getFailureCause()); }
StageStats stageStats = stageInfo.get().getStageStats();
com.facebook.presto.execution.StageStats stageStats = stageInfo.getStageStats();
if (finalStageInfo.isPresent()) { return finalStageInfo.get() .getStageStats() .toBasicStageStats(finalStageInfo.get().getState());
outputStage.getStageStats(),
boolean completeInfo = true; for (StageInfo stageInfo : getAllStages(rootStage)) { StageStats stageStats = stageInfo.getStageStats(); totalTasks += stageStats.getTotalTasks(); runningTasks += stageStats.getRunningTasks(); operatorStatsSummary.addAll(stageInfo.getStageStats().getOperatorSummaries()); StageStats outputStageStats = rootStage.get().getStageStats(); outputDataSize += outputStageStats.getOutputDataSize().toBytes(); outputPositions += outputStageStats.getOutputPositions();
private StageInfo buildStageInfo(StageId stageId, Map<StageId, StageInfo> stageInfos) { StageInfo parent = stageInfos.get(stageId); checkArgument(parent != null, "No stageInfo for %s", parent); List<StageInfo> childStages = stageLinkages.get(stageId).getChildStageIds().stream() .map(childStageId -> buildStageInfo(childStageId, stageInfos)) .collect(toImmutableList()); if (childStages.isEmpty()) { return parent; } return new StageInfo( parent.getStageId(), parent.getState(), parent.getSelf(), parent.getPlan(), parent.getTypes(), parent.getStageStats(), parent.getTasks(), childStages, parent.getFailureCause()); }
com.facebook.presto.execution.StageStats stageStats = stageInfo.getStageStats();
StageStats stageStats = stageInfo.getStageStats(); totalTasks += stageStats.getTotalTasks(); runningTasks += stageStats.getRunningTasks(); StageStats outputStageStats = rootStage.getStageStats(); outputDataSize += outputStageStats.getOutputDataSize().toBytes(); outputPositions += outputStageStats.getOutputPositions();
queryInfo.getOutputStage().getStageStats(),