public StoreFileWriter createWriterInTmp(Date date, long maxKeyCount,
    Compression.Algorithm compression, byte[] startKey, boolean isCompaction) throws IOException {
    if (startKey == null) {
      startKey = HConstants.EMPTY_START_ROW;
    }
    Path path = getTempDir();
    return createWriterInTmp(MobUtils.formatDate(date), path, maxKeyCount, compression, startKey,
      isCompaction, null);
  }
Creates the writer for the mob file in temp directory.
@param date         The latest date of written cells.
@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