static List<Partition> createManyPartitions(@NotNull Table table,
                                              @Nullable Map<String, String> parameters,
                                              @NotNull List<String> arguments,
                                              int npartitions) {
    return IntStream.range(0, npartitions)
            .mapToObj(i ->
                    new PartitionBuilder(table)
                            .withParameters(parameters)
                            .withValues(
                                    arguments.stream()
                                            .map(a -> a + i)
                                            .collect(Collectors.toList())).build())
            .collect(Collectors.toList());
  }
Create multiple partition objects.

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