public void appendMetadata(final long maxSequenceId, final boolean majorCompaction,
    final Collection<HStoreFile> storeFiles) throws IOException {
    liveFileWriter.appendMetadata(maxSequenceId, majorCompaction, storeFiles);
    if (historicalFileWriter != null) {
      historicalFileWriter.appendMetadata(maxSequenceId, majorCompaction, storeFiles);
    }
  }
Writes meta data. Call before {@link #close()} since its written as meta data to this file.
@param maxSequenceId   Maximum sequence id.
@param majorCompaction True if this file is product of a major compaction
@param storeFiles      The compacted store files to generate this new file
@throws IOException problem writing to FS
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java