stagesupport/src/main/java/com/streamsets/pipeline/lib/util/OffsetUtil.java
public static String serializeOffsetMap(Map<String, String> offsetMap) throws IOException {
    return JSON_MAPPER.writeValueAsString(offsetMap);
  }
public static String serializeOffsetMap(Map<String, String> offsetMap) throws IOException {
    return JSON_MAPPER.writeValueAsString(offsetMap);
  }
public static String serializeOffsetMap ( Map < String , String > offsetMap ) throws IOException { return JSON_MAPPER . writeValueAsString ( offsetMap ) ; }
Serialize the Map of table to offset to a String
@param offsetMap Map of table to Offset.
@return Serialized offset
@throws StageException When Serialization exception happens
Serialize the Map of table to offset to a String