@Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    DecimalFormat dFormat = new DecimalFormat("#.##");
    dFormat.setRoundingMode(RoundingMode.HALF_UP);
    sb.append("Replication Stats{");
    for (Map.Entry<String, DescriptiveStatistics> event : descMap.entrySet()) {
      DescriptiveStatistics statistics = event.getValue();
      sb.append("[[Event Name: ").append(event.getKey()).append("; ");
      sb.append("Total Number: ").append(statistics.getN()).append("; ");
      sb.append("Total Time: ").append(dFormat.format(statistics.getSum())).append("; ");
      sb.append("Mean: ").append(formatDouble(dFormat, statistics.getMean())).append("; ");
      sb.append("Median: ").append(formatDouble(dFormat, statistics.getPercentile(50))).append("; ");
      sb.append("Standard Deviation: ").append(formatDouble(dFormat, statistics.getStandardDeviation())).append("; ");
      sb.append("Variance: ").append(formatDouble(dFormat, statistics.getVariance())).append("; ");
      sb.append("Kurtosis: ").append(formatDouble(dFormat, statistics.getKurtosis())).append("; ");
      sb.append("Skewness: ").append(formatDouble(dFormat, statistics.getSkewness())).append("; ");
      sb.append("25th Percentile: ").append(formatDouble(dFormat, statistics.getPercentile(25))).append("; ");
      sb.append("50th Percentile: ").append(formatDouble(dFormat, statistics.getPercentile(50))).append("; ");
      sb.append("75th Percentile: ").append(formatDouble(dFormat, statistics.getPercentile(75))).append("; ");
      sb.append("90th Percentile: ").append(formatDouble(dFormat, statistics.getPercentile(90))).append("; ");
      sb.append("Top ").append(k).append(" EventIds(EventId=Time) ").append(topKEvents.get(event.getKey()))
          .append(";" + "]]");
    }
    sb.append("}");
    return sb.toString();
  }
Gets the last event id processed.
@return the last event id.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplStatsTracker.java