public Partition build(Configuration conf) throws MetaException {
    if (tableName == null) {
      throw new MetaException("table name must be provided");
    }
    if (values == null) throw new MetaException("You must provide partition values");
    if (catName == null) catName = MetaStoreUtils.getDefaultCatalog(conf);
    Partition p = new Partition(values, dbName, tableName, createTime, lastAccessTime, buildSd(),
        partParams);
    p.setCatName(catName);
    return p;
  }
Builder for {@link Partition}.  The only requirements are 1. (database name and table name) or table
reference; 2. partition values; 3. whatever {@link StorageDescriptorBuilder} requires.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/client/builder/PartitionBuilder.java