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; driver_part_time_tmp += statistic.getTimeTaken(); break; case QueryStatisticsConstants.LOAD_META: load_meta_time += statistic.getTimeTaken() + splitChar; driver_part_time_tmp += statistic.getTimeTaken(); break; case QueryStatisticsConstants.LOAD_BLOCKS_DRIVER: load_blocks_time_tmp += statistic.getTimeTaken(); driver_part_time_tmp += statistic.getTimeTaken(); driver_part_time_tmp2 += statistic.getTimeTaken(); break; case QueryStatisticsConstants.BLOCK_ALLOCATION: block_allocation_time += statistic.getTimeTaken() + splitChar; driver_part_time_tmp += statistic.getTimeTaken(); driver_part_time_tmp2 += statistic.getTimeTaken(); break; case QueryStatisticsConstants.BLOCK_IDENTIFICATION: block_identification_time += statistic.getTimeTaken() + splitChar; driver_part_time_tmp += statistic.getTimeTaken(); driver_part_time_tmp2 += statistic.getTimeTaken(); break; default: