public static ExecutorService newDeleteThreadPool(String completeName, int numThreads) {
    AtomicInteger deleteThreadsIndex = new AtomicInteger(0);
    return Executors.newFixedThreadPool(numThreads, runnable -> {
      Thread thread = new Thread(runnable);
      thread.setName("remove-snapshot-" + completeName + "-" + deleteThreadsIndex.getAndIncrement());
      return thread;
    });
  }
Returns a list of partition names satisfying the provided partition spec.
@param table Iceberg table
@param partSpecMap Partition Spec used as the criteria for filtering
@param latestSpecOnly when True, returns partitions with the current spec only, else - any specs
@return List of partition names
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/IcebergTableUtil.java