public void verifyNumericRows(Table table, final byte[] f, int startRow, int endRow,
    int replicaId) throws IOException {
    for (int i = startRow; i < endRow; i++) {
      String failMsg = "Failed verification of row :" + i;
      byte[] data = Bytes.toBytes(String.valueOf(i));
      Get get = new Get(data);
      get.setReplicaId(replicaId);
      get.setConsistency(Consistency.TIMELINE);
      Result result = table.get(get);
      if (!result.containsColumn(f, null)) {
        throw new AssertionError(failMsg);
      }
      assertEquals(failMsg, 1, result.getColumnCells(f, null).size());
      Cell cell = result.getColumnLatestCell(f, null);
      if (
        !Bytes.equals(data, 0, data.length, cell.getValueArray(), cell.getValueOffset(),
          cell.getValueLength())
      ) {
        throw new AssertionError(failMsg);
      }
    }
  }
Load region with rows from 'aaa' to 'zzz'.
@param r     Region
@param f     Family
@param flush flush the cache if true
@return Count of rows loaded.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java