private static synchronized void initStaticSeriesPartitionExecutor(
      String executorName, int seriesPartitionSlotNum) {
    if (EXECUTOR == null) {
      try {
        Class<?> executor = Class.forName(executorName);
        Constructor<?> executorConstructor = executor.getConstructor(int.class);
        EXECUTOR =
            (SeriesPartitionExecutor) executorConstructor.newInstance(seriesPartitionSlotNum);
      } catch (ClassNotFoundException
          | NoSuchMethodException
          | InstantiationException
          | IllegalAccessException
          | InvocationTargetException e) {
        throw new IllegalArgumentException(
            String.format("Couldn't Constructor SeriesPartitionExecutor class: %s", executorName));
      }
    }
  }
All SeriesPartitionExecutors must be subclasses of SeriesPartitionExecutor
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/executor/SeriesPartitionExecutor.java