protected final StoreFileWriter createWriter(FileDetails fd, boolean shouldDropBehind,
    boolean major, Consumer<Path> writerCreationTracker) throws IOException {
    // When all MVCC readpoints are 0, don't write them.
    // See HBASE-8166, HBASE-12600, and HBASE-13389.
    return store.getStoreEngine()
      .createWriter(createParams(fd, shouldDropBehind, major, writerCreationTracker));
  }
Creates a writer for a new file.
@param fd The file details.
@return Writer for a new StoreFile
@throws IOException if creation failed
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/Compactor.java