@Override
  public int compareTo(TableSplit split) {
    // If The table name of the two splits is the same then compare start row
    // otherwise compare based on table names
    int tableNameComparison = getTable().compareTo(split.getTable());
    return tableNameComparison != 0
      ? tableNameComparison
      : Bytes.compareTo(getStartRow(), split.getStartRow());
  }
Compares this split against the given one.
@param split The split to compare to.
@return The result of the comparison.
@see java.lang.Comparable#compareTo(java.lang.Object)
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/TableSplit.java