public StoreFileWriter createWriterInTmp(String date, Path basePath, long maxKeyCount,
    Compression.Algorithm compression, byte[] startKey, boolean isCompaction,
    Consumer<Path> writerCreationTracker) throws IOException {
    MobFileName mobFileName =
      MobFileName.create(startKey, date, UUID.randomUUID().toString().replaceAll("-", ""),
        getHRegion().getRegionInfo().getEncodedName());
    return createWriterInTmp(mobFileName, basePath, maxKeyCount, compression, isCompaction,
      writerCreationTracker);
  }
Creates the writer for the mob file in temp directory.
@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 start key.
@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/regionserver/HMobStore.java