public static WALEdit createFlushWALEdit(RegionInfo hri, FlushDescriptor f) {
    KeyValue kv = new KeyValue(getRowForRegion(hri), METAFAMILY, FLUSH,
      EnvironmentEdgeManager.currentTime(), f.toByteArray());
    return new WALEdit().add(kv, METAFAMILY);
  }
Reads WALEdit from cells.
@param cellDecoder   Cell decoder.
@param expectedCount Expected cell count.
@return Number of KVs read.
hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALEdit.java