public <T> String encode(T input) throws IOException {
    return om.writeValueAsString(input);
  }
Enables to encode/decode runtime statistics values into textual form.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/signature/RuntimeStatsPersister.java