@Override
  public boolean containsRange(byte[] rangeStartKey, byte[] rangeEndKey) {
    CellComparator cellComparator = CellComparatorImpl.getCellComparator(tableName);
    if (cellComparator.compareRows(rangeStartKey, rangeEndKey) > 0) {
      throw new IllegalArgumentException("Invalid range: " + Bytes.toStringBinary(rangeStartKey)
        + " > " + Bytes.toStringBinary(rangeEndKey));
    }

    boolean firstKeyInRange = cellComparator.compareRows(rangeStartKey, startKey) >= 0;
    boolean lastKeyInRange = cellComparator.compareRows(rangeEndKey, endKey) < 0
      || Bytes.equals(endKey, HConstants.EMPTY_BYTE_ARRAY);
    return firstKeyInRange && lastKeyInRange;
  }
Returns true if the given inclusive range of rows is fully contained by this region. For
example, if the region is foo,a,g and this is passed ["b","c"] or ["a","c"] it will return
true, but if this is passed ["b","z"] it will return false.
@throws IllegalArgumentException if the range passed is invalid (ie. end &lt; start)
hbase-client/src/main/java/org/apache/hadoop/hbase/client/MutableRegionInfo.java