* This is done on fake ComponentGenerator, so there is no computeSourcePar
* parallelism on source components is input variable This method is
* idempotent, no side effects, can be called multiple times.
*/
public Map<String, Integer> computeSourcePar(int totalSourcePar) {
final SQLVisitor pq = ParserUtil.parseQuery(_map);
final List<Table> tableList = pq.getTableList();
if (totalSourcePar < tableList.size())
throw new RuntimeException(
"There is not enought nodes such that all the sources get at least parallelism = 1");
/*
* We need a way to generate parallelism for all the DataSources This