public String serialize() throws JsonProcessingException {
    return objectMapper.writeValueAsString(this);
  }
This class represents the metadata related to events in repl dump.
Metadata includes,
lastReplId - the last successfully dumped eventId.
eventsDumpedCount - number of events dumped in staging directory.
eventsBatched - denotes if events are dumped in batches.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/EventsDumpMetadata.java