public Map<String, List<ColumnStatisticsObj>> getAllPartitionColumnStatistics(String dbName,
                                                                    String tableName) throws Exception {
    List<String> colNames = new ArrayList();
    client.getFields(dbName, tableName).forEach(fs -> colNames.add(fs.getName()));
    return client.getPartitionColumnStatistics(dbName, tableName,
            client.listPartitionNames(dbName, tableName, (short) -1), colNames, Constants.HIVE_ENGINE);
  }
Get statistics for given set of columns of a given table in the given database
@param dbName - the database where the table resides
@param tableName - tablename whose statistics are to be retrieved
@return - list of ColumnStatisticsObj objects in the order of the specified columns
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java