protected int addRows(final MemStore hmc, final long ts) {
    for (int i = 0; i < ROW_COUNT; i++) {
      long timestamp =
        ts == HConstants.LATEST_TIMESTAMP ? EnvironmentEdgeManager.currentTime() : ts;
      for (int ii = 0; ii < QUALIFIER_COUNT; ii++) {
        byte[] row = Bytes.toBytes(i);
        byte[] qf = makeQualifier(i, ii);
        hmc.add(new KeyValue(row, FAMILY, qf, timestamp, qf), null);
      }
    }
    return ROW_COUNT;
  }
Adds {@link #ROW_COUNT} rows and {@link #QUALIFIER_COUNT}
@param hmc Instance to add rows to.
@return How many rows we added.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestDefaultMemStore.java