public static StatsPublisher getStatsPublisher(JobConf jc) {
    StatsFactory factory = StatsFactory.newFactory(jc);
    return factory == null ? null : factory.getStatsPublisher();
  }
Construct a list of full partition spec from Dynamic Partition Context and the directory names
corresponding to these dynamic partitions.
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java