static List<Partition> createManyPartitions(@NotNull Table table,
                                              @Nullable Map<String, String> parameters,
                                              @NotNull List<List<String>> values) {
    return values.stream()
        .map(vals ->
            new PartitionBuilder(table)
                .withParameters(parameters)
                .withValues(vals)
                .build())
        .collect(Collectors.toList());
  }
Create multiple partition objects with list of partition values.

@param table
@param parameters
@param values list of partition values
@return list of created partitions
standalone-metastore/metastore-tools/tools-common/src/main/java/org/apache/hadoop/hive/metastore/tools/Util.java