final BasicIndexScan index1 = getIndex((LeafNodePlan) plan, indexScan, sortCriterium, minima, maxima);
selectivity.put(plan.getTriplePatterns().iterator().next(), plan.getSelectivity());
root.addSucceedingOperator(new OperatorIDTuple(index1, 0));
return index1;
} else {
final InnerNodePlan inp = (InnerNodePlan) plan;
final BasicOperator left = generateOperatorGraph(inp.getLeft(), root, indexScan, inp.getJoinPartner(), minima, maxima, selectivity);
final BasicOperator right = generateOperatorGraph(inp.getRight(), root, indexScan, inp.getJoinPartner(), minima, maxima, selectivity);
return this.generateJoin(inp, root, left, right, sortCriterium, selectivity);
}
}