public static boolean rowIsInRange(RegionInfo info, final byte[] row) {
    return ((info.getStartKey().length == 0) || (Bytes.compareTo(info.getStartKey(), row) <= 0))
      && ((info.getEndKey().length == 0) || (Bytes.compareTo(info.getEndKey(), row) > 0));
  }
Determines if the specified row is within the row range specified by the specified RegionInfo
@param info RegionInfo that specifies the row range
@param row  row to be checked
@return true if the row is within the range specified by the RegionInfo
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java