public static PartitionSpecProxy get(PartitionSpec partSpec) throws MetaException {

      if (partSpec == null) {
        return null;
      }
      else
      if (partSpec.isSetPartitionList()) {
        return new PartitionListComposingSpecProxy(partSpec);
      }
      else
      if (partSpec.isSetSharedSDPartitionSpec()) {
        return new PartitionSpecWithSharedSDProxy(partSpec);
      }

      assert false : "Unsupported type of PartitionSpec!";
      return null;
    }
Factory method. Construct PartitionSpecProxy from raw PartitionSpec.
@param partSpec Raw PartitionSpec from the Thrift API.
@return PartitionSpecProxy instance.
@throws MetaException
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/partition/spec/PartitionSpecProxy.java