code: @Override
    public Pair<byte[][], byte[][]> getStartEndKeys() throws IOException {
      List<HRegionLocation> regions = getAllRegionLocations();
      byte[][] startKeys = new byte[regions.size()][];
      byte[][] endKeys = new byte[regions.size()][];
      int i = 0;
      for(HRegionLocation region : regions) {
        startKeys[i] = region.getRegionInfo().getStartKey();
        endKeys[i] = region.getRegionInfo().getEndKey();
        i++;
      }
      return Pair.newPair(startKeys, endKeys);
    }
docs: {@inheritDoc}