private void appendMetadata(final long maxSequenceId, final boolean majorCompaction,
      final long mobCellsCount) throws IOException {
      writer.appendFileInfo(MAX_SEQ_ID_KEY, Bytes.toBytes(maxSequenceId));
      writer.appendFileInfo(MAJOR_COMPACTION_KEY, Bytes.toBytes(majorCompaction));
      writer.appendFileInfo(MOB_CELLS_COUNT, Bytes.toBytes(mobCellsCount));
      appendTrackedTimestampsToMetadata();
    }
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 mobCellsCount   The number of mob cells.
@throws IOException problem writing to FS
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreFileWriter.java