@Override
  public int hashCode() {
    int result = tableName != null ? tableName.hashCode() : 0;
    result = 31 * result + (scan != null ? scan.hashCode() : 0);
    result = 31 * result + (startRow != null ? Arrays.hashCode(startRow) : 0);
    result = 31 * result + (endRow != null ? Arrays.hashCode(endRow) : 0);
    result = 31 * result + (regionLocation != null ? regionLocation.hashCode() : 0);
    result = 31 * result + (encodedRegionName != null ? encodedRegionName.hashCode() : 0);
    return result;
  }
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