private static byte[] getRowKey(final TooSlowLog.SlowLogPayload slowLogPayload) {
    String hashcode = String.valueOf(slowLogPayload.hashCode());
    String lastFiveDig = hashcode.substring((hashcode.length() > 5) ? (hashcode.length() - 5) : 0);
    if (lastFiveDig.startsWith("-")) {
      lastFiveDig = String.valueOf(ThreadLocalRandom.current().nextInt(99999));
    }
    final long currentTime = EnvironmentEdgeManager.currentTime();
    final String timeAndHashcode = currentTime + lastFiveDig;
    final long rowKeyLong = Long.parseLong(timeAndHashcode);
    return Bytes.toBytes(rowKeyLong);
  }
Create rowKey: currentTime APPEND slowLogPayload.hashcode Scan on slowlog table should keep
records with sorted order of time, however records added at the very same time could be in
random order.
@param slowLogPayload SlowLogPayload to process
@return rowKey byte[]
hbase-client/src/main/java/org/apache/hadoop/hbase/slowlog/SlowLogTableAccessor.java