/** * Determines whether a partition has been archived * * @param p * @return is it archived? */ public static boolean isArchived(Partition p) { return MetaStoreUtils.isArchived(p.getTPartition()); }
public static Path getOriginalLocation( org.apache.hadoop.hive.metastore.api.Partition part) { Map<String, String> params = part.getParameters(); assert(isArchived(part)); String originalLocation = params.get(hive_metastoreConstants.ORIGINAL_LOCATION); assert( originalLocation != null); return new Path(originalLocation); }
/** * Determines whether a partition has been archived * * @param p * @return is it archived? */ public static boolean isArchived(Partition p) { return MetaStoreUtils.isArchived(p.getTPartition()); }
public static Path getOriginalLocation( org.apache.hadoop.hive.metastore.api.Partition part) { Map<String, String> params = part.getParameters(); assert(isArchived(part)); String originalLocation = params.get(hive_metastoreConstants.ORIGINAL_LOCATION); assert( originalLocation != null); return new Path(originalLocation); }
public static Path getOriginalLocation( org.apache.hadoop.hive.metastore.api.Partition part) { Map<String, String> params = part.getParameters(); assert(isArchived(part)); String originalLocation = params.get(Constants.ORIGINAL_LOCATION); assert( originalLocation != null); return new Path(originalLocation); }
public static Path getOriginalLocation( org.apache.hadoop.hive.metastore.api.Partition part) { Map<String, String> params = part.getParameters(); assert(isArchived(part)); String originalLocation = params.get(hive_metastoreConstants.ORIGINAL_LOCATION); assert( originalLocation != null); return new Path(originalLocation); }
public static int getArchivingLevel(Partition part) throws MetaException { if (!isArchived(part)) { throw new MetaException("Getting level of unarchived partition"); } String lv = part.getParameters().get(ARCHIVING_LEVEL); if (lv != null) { return Integer.parseInt(lv); } else { // partitions archived before introducing multiple archiving return part.getValues().size(); } }
public static int getArchivingLevel(Partition part) throws MetaException { if (!isArchived(part)) { throw new MetaException("Getting level of unarchived partition"); } String lv = part.getParameters().get(ARCHIVING_LEVEL); if (lv != null) { return Integer.parseInt(lv); } else { // partitions archived before introducing multiple archiving return part.getValues().size(); } }
isArchived = MetaStoreUtils.isArchived(part); if (isArchived) { archiveParentDir = MetaStoreUtils.getOriginalLocation(part);
if (MetaStoreUtils.isArchived(part) && MetaStoreUtils.getArchivingLevel(part) < expr.getPartArchiveLevel()) { throw new MetaException("Cannot drop a subset of partitions " if (MetaStoreUtils.isArchived(part)) { Path archiveParentDir = MetaStoreUtils.getOriginalLocation(part); verifyIsWritablePath(archiveParentDir);
if (MetaStoreUtils.isArchived(part) && MetaStoreUtils.getArchivingLevel(part) < expr.getPartArchiveLevel()) { throw new MetaException("Cannot drop a subset of partitions " if (MetaStoreUtils.isArchived(part)) { Path archiveParentDir = MetaStoreUtils.getOriginalLocation(part); verifyIsWritablePath(archiveParentDir);
isArchived = MetaStoreUtils.isArchived(part); if (isArchived) { archiveParentDir = MetaStoreUtils.getOriginalLocation(part);
isArchived = MetaStoreUtils.isArchived(part); if (isArchived) { archiveParentDir = MetaStoreUtils.getOriginalLocation(part);
isArchived = MetaStoreUtils.isArchived(part); if (isArchived) { archiveParentDir = MetaStoreUtils.getOriginalLocation(part);