public int size() throws HCatException {
    return partitionSpecProxy.size();
  }
Getter for the number of HCatPartitions represented by this HCatPartitionSpec instance.
@return The number of HCatPartitions.
@throws HCatException On failure.
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatPartitionSpec.java