public TaskStatistics build(long startTime, List<QueryStatistic> queryStatistics) { this.values[2] = startTime; for (QueryStatistic statistic : queryStatistics) { if (statistic.getMessage() != null) { for (int columnIndex = 3; columnIndex <= numOfColumns - 1; columnIndex++) { if (columns[columnIndex].comment.equals(statistic.getMessage())) { if (columns[columnIndex].isDuration) { values[columnIndex] += statistic.getTimeTaken(); } else { values[columnIndex] += statistic.getCount(); } break; } } } } return this; }
switch (statistic.getMessage()) { case QueryStatisticsConstants.SQL_PARSE: sql_parse_time += statistic.getTimeTaken() + splitChar;