public static int getArchivingLevel(Partition p) throws HiveException {
    try {
      return MetaStoreUtils.getArchivingLevel(p.getTPartition());
    } catch (MetaException ex) {
      throw new HiveException(ex.getMessage(), ex);
    }
  }
Returns archiving level, which is how many fields were set in partial
specification ARCHIVE was run for
ql/src/java/org/apache/hadoop/hive/ql/exec/ArchiveUtils.java