public HCatAddPartitionDesc build() throws HCatException {
      return hcatPartition == null?
                new HCatAddPartitionDesc(dbName, tableName, location, partitionSpec)
              : new HCatAddPartitionDesc(hcatPartition);
    }
Builds the HCatAddPartitionDesc.

@return the h cat add partition desc
@throws HCatException
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatAddPartitionDesc.java