public static List<Long> getBasicStatForPartitions(List<Partition> parts, String statType) {
    List<Long> stats = Lists.newArrayList();
    for (Partition part : parts) {
      Map<String, String> params = part.getParameters();
      long result = 0;
      if (params != null) {
        try {
          result = Long.parseLong(params.get(statType));
        } catch (NumberFormatException e) {
          result = 0;
        }
        stats.add(result);
      }
    }
    return stats;
  }
Get basic stats of partitions
@param parts
         - partitions
@param statType
         - type of stats
@return value of stats
ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java