@Override
    public void run() {
      try {
        RuntimeStat rec = encode(list);
        Hive.get().getMSC().addRuntimeStat(rec);
      } catch (TException | HiveException | IOException e) {
        logException("Exception while persisting runtime stat", e);
      }
    }
Decorates a StatSource to be loaded and persisted in the metastore as well.
ql/src/java/org/apache/hadoop/hive/ql/plan/mapper/MetastoreStatsConnector.java