public static StatsFactory newFactory(Configuration conf) {
    return newFactory(HiveConf.getVar(conf, HIVE_STATS_DBCLASS), conf);
  }
A factory of stats publisher and aggregator implementations of the
StatsPublisher and StatsAggregator interfaces.
ql/src/java/org/apache/hadoop/hive/ql/stats/StatsFactory.java