HCatPartition getHCatPartition() {
    return hcatPartition;
  }
The Class HCatAddPartitionDesc helps users in defining partition attributes.
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatAddPartitionDesc.java