示例#1
0
 /**
  * Returns archiving level, which is how many fields were set in partial specification ARCHIVE was
  * run for
  */
 public static int getArchivingLevel(Partition p) throws HiveException {
   try {
     return MetaStoreUtils.getArchivingLevel(p.getTPartition());
   } catch (MetaException ex) {
     throw new HiveException(ex.getMessage(), ex);
   }
 }
示例#2
0
 /**
  * Determines whether a partition has been archived
  *
  * @param p
  * @return is it archived?
  */
 public static boolean isArchived(Partition p) {
   return MetaStoreUtils.isArchived(p.getTPartition());
 }