private List<IDataSchema> fetchSchemaForTreeModel(TCreateTrainingReq req) {
    List<IDataSchema> dataSchemaList = new ArrayList<>();
    if (req.useAllData) {
      dataSchemaList.add(new IDataSchema("root.**"));
      return dataSchemaList;
    }
    for (int i = 0; i < req.getDataSchemaForTree().getPathSize(); i++) {
      IDataSchema dataSchema = new IDataSchema(req.getDataSchemaForTree().getPath().get(i));
      dataSchema.setTimeRange(req.getTimeRanges().get(i));
      dataSchemaList.add(dataSchema);
    }
    return dataSchemaList;
  }
Get all related dataRegion which may contains the data of specific timeseries matched by given
patternTree
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/ConfigManager.java