public static ExtendedCell createNextOnRowCol(ExtendedCell cell) {
    long ts = cell.getTimestamp();
    byte type = cell.getTypeByte();
    if (type != KeyValue.Type.Minimum.getCode()) {
      type = KeyValue.Type.values()[KeyValue.Type.codeToType(type).ordinal() - 1].getCode();
    } else if (ts != PrivateConstants.OLDEST_TIMESTAMP) {
      ts = ts - 1;
      type = KeyValue.Type.Maximum.getCode();
    } else {
      return cell;
    }
    return createNextOnRowCol(cell, ts, type);
  }
Return a new cell is located following input cell. If both of type and timestamp are minimum,
the input cell will be returned directly.
hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java