Exemplo n.º 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);
   }
 }
Exemplo n.º 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());
 }