public static Path generateMOBFileForRegion(Configuration conf, TableName tableName,
    ColumnFamilyDescriptor familyDescriptor, String regionName) throws IOException {
    Date date = new Date();
    String dateStr = MobUtils.formatDate(date);
    FileSystem fs = FileSystem.get(conf);
    Path cfMOBDir = MobUtils.getMobFamilyPath(conf, tableName, familyDescriptor.getNameAsString());
    StoreFileWriter writer = MobUtils.createWriter(conf, fs, familyDescriptor, dateStr, cfMOBDir,
      1000L, Compression.Algorithm.NONE, "startKey", CacheConfig.DISABLED, Encryption.Context.NONE,
      false, "");
    writer.close();
    return writer.getPath();
  }
Gets the number of rows in the given table.
@param table to get the scanner
@return the number of rows
hbase-server/src/test/java/org/apache/hadoop/hbase/mob/MobTestUtil.java