private void setArchived(Partition p, Path harPath, int level) {
    assert(!ArchiveUtils.isArchived(p));
    AlterTableArchiveUtils.setIsArchived(p, true, level);
    AlterTableArchiveUtils.setOriginalLocation(p, p.getLocation());
    p.setLocation(harPath.toString());
  }
Sets the appropriate attributes in the supplied Partition object to mark
it as archived. Note that the metastore is not touched - a separate
call to alter_partition is needed.

@param p - the partition object to modify
@param harPath - new location of partition (har schema URI)
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/archive/AlterTableArchiveOperation.java