public static StoreFileWriter createWriter(Configuration conf, FileSystem fs,
    ColumnFamilyDescriptor family, String date, Path basePath, long maxKeyCount,
    Compression.Algorithm compression, String startKey, CacheConfig cacheConfig,
    Encryption.Context cryptoContext, boolean isCompaction, String regionName) throws IOException {
    MobFileName mobFileName = MobFileName.create(startKey, date,
      UUID.randomUUID().toString().replaceAll("-", ""), regionName);
    return createWriter(conf, fs, family, mobFileName, basePath, maxKeyCount, compression,
      cacheConfig, cryptoContext, isCompaction);
  }
Creates a writer for the mob file in temp directory.
@param conf          The current configuration.
@param fs            The current file system.
@param family        The descriptor of the current column family.
@param date          The date string, its format is yyyymmmdd.
@param basePath      The basic path for a temp directory.
@param maxKeyCount   The key count.
@param compression   The compression algorithm.
@param startKey      The hex string of the start key.
@param cacheConfig   The current cache config.
@param cryptoContext The encryption context.
@param isCompaction  If the writer is used in compaction.
@return The writer for the mob file.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java