public List<String> getPartitionNames(IMetaStoreClient msc, String catName, String dbName, String tblName, short max)
    throws MetastoreException {
    try {
      return msc.listPartitionNames(catName, dbName, tblName, max);
    } catch (Exception e) {
      throw new MetastoreException(e);
    }
  }
Primary constructor that fetches all partitions in a given table, given
a Hive object and a table object, and a partial partition spec.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/PartitionIterable.java